]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mdmfs(8): Check for other types of helper-program failure
authorcem <cem@FreeBSD.org>
Sat, 20 Oct 2018 21:33:00 +0000 (21:33 +0000)
committercem <cem@FreeBSD.org>
Sat, 20 Oct 2018 21:33:00 +0000 (21:33 +0000)
commit842a0eb567941f233c3760e61b3b351f479d4ee5
tree779cd09126dc83083916474c101ae3635b801e2d
parent4d6ec1773b8e93e76d31d77b20b3979b8721a0ef
mdmfs(8): Check for other types of helper-program failure

Exiting with a signal should not be treated the same as successful exit with
zero status.

Return signal exit information to the callers via negative integers, to
enable distinction from normal exit statuses.  (All consumers that check for
errors don't care what the exact non-zero exit value is -- in such a case
they print a diagnostic message and either continue or bail.)

Additionally, check for unexpected sources of waitpid() wakeup and bail if
we encounter them.

Reported by: lev@
Reviewed by: kib, lev, markj (earlier version)
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D17035
sbin/mdmfs/mdmfs.c