discover/paths: Check process exit status when loading URLs
authorJeremy Kerr <jk@ozlabs.org>
Tue, 21 Jan 2014 00:27:48 +0000 (08:27 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 21 Jan 2014 05:36:01 +0000 (13:36 +0800)
commit6acda62401f17924b7004e25d038533e282903a1
tree6ae6cd982bbf2de19975b4af573b6fc6c3e3c96d
parentc19e643390ef5f77151fe029e6d336a07e212858
discover/paths: Check process exit status when loading URLs

Currently, we may report incorrect success when loading a URL, as we
only check the return value of process_run_sync() (and not the process
exit status itself) in load_process_to_local_file.

This fix adds a check to the synchronous load.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/paths.c