lib/process: Add helper for check process clean exit
authorJeremy Kerr <jk@ozlabs.org>
Tue, 21 Jan 2014 02:00:49 +0000 (10:00 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 21 Jan 2014 05:36:01 +0000 (13:36 +0800)
commit2ad0e66f61e8f8488cff208f8bb7f5127ec9f813
treeaa676b143507346dbde4998bdd38f8e375387cb6
parent6acda62401f17924b7004e25d038533e282903a1
lib/process: Add helper for check process clean exit

We have a few incorrect checks for the exit status of a process; this
change adds a helper with the correct WIFEXITED && WEXITSTATUS==0 logic.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/paths.c
lib/pb-config/storage-powerpc-nvram.c
lib/process/process.c
lib/process/process.h