iowatcher: Check program exit code properly
authorAndrew Price <anprice@redhat.com>
Fri, 28 Mar 2014 01:42:47 +0000 (01:42 +0000)
committerChris Mason <clm@fb.com>
Wed, 24 Sep 2014 19:02:09 +0000 (12:02 -0700)
commit6061d941fc91e079edf76402bab2056063637d96
tree2da95f37b1a96b821db8bbc51d430d2113525d46
parentc1ab63ed17189cacf1247751e8633f589c977a00
iowatcher: Check program exit code properly

The return value of posix_spawnp() was being checked but the exit status
of the child process was being ignored. This adds checks and error
reporting based on the status that waitpid returns.

Signed-off-by: Andrew Price <anprice@redhat.com>
iowatcher/tracers.c