[PATCH 2/2] sys_cmd error handling improved in the following ways: (1) If the subprocess exits nonzero then the exit status is unpicked and logged. (2) If the exec in the child fails, the command and errno string are written to stderr (which should end up in secnet's usual log output). (3) _exit() is used instead of exit(), to avoid any possibility of craziness with stdio/atexit/etc.
Richard Kettlewell
rjk at terraraq.org.uk
Sat Jul 9 17:13:57 BST 2011
I'm not sure what git-send-email was playing at there. The description
in a more readable form:
sys_cmd error handling improved in the following ways:
(1) If the subprocess exits nonzero then the exit status
is unpicked and logged.
(2) If the exec in the child fails, the command and
errno string are written to stderr (which should
end up in secnet's usual log output).
(3) _exit() is used instead of exit(), to avoid
any possibility of craziness with stdio/atexit/etc.
ttfn/rjk
More information about the sgo-software-discuss
mailing list