]> git.ozlabs.org Git - petitboot/commit
discover: Add an asynchronous version of load_url
authorNeelesh Gupta <neelegup@linux.vnet.ibm.com>
Thu, 12 Sep 2013 14:26:54 +0000 (19:56 +0530)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 25 Sep 2013 06:56:50 +0000 (14:56 +0800)
commitce1875fe6d550803879cad4ed168229e154c0d3c
treeca0d411d7bd451e3d760a8b0b60f0e33bcea46e5
parent1972d9cfcc5300cd8cb2f587d9bc5f856322ae8f
discover: Add an asynchronous version of load_url

A new load_url_async() function handles retrieving the resources by
forking an external process which currently blocks the parent waiting
for the process to complete. This patch modifies the load_*() functions
to handle it asynchronously by providing the exit callback and returning
without waiting for the child process to exit.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com>
discover/paths.c
discover/paths.h