]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
tests: use exec to call libwrap'd executables
authorBenjamin Kaduk <kaduk@mit.edu>
Fri, 16 Dec 2016 04:12:01 +0000 (22:12 -0600)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 16 Dec 2016 21:25:58 +0000 (16:25 -0500)
No need to leave the shell process hanging around.

In particular, if we are manually running softsig-helper under
libwrap to debug test failures, the child process of the shell is
another shell, which interprets some signals that we wanted to
be passed through, like SIGTERM.  On the other hand, once the
softsig-helper is exec()'d, you basically need another shell to
terminate it, which is a different problem....

Change-Id: Iff7c519886a018cb68e692746d40c427b6299457
Reviewed-on: https://gerrit.openafs.org/12490
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Anders Kaseorg <andersk@mit.edu>
Tested-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
tests/libwrap

index ae32588ec4ae8c519e5bff5567c2789c67281aa2..161abd78f4460756f3ab0469e14fd74f6d4498a0 100755 (executable)
@@ -45,4 +45,4 @@ fi
 export LIBPATH
 
 shift
-"$TEST_COMMAND" "$@"
+exec "$TEST_COMMAND" "$@"