From 9fd396adabaa1868517fdb3d7cfcbe9412c35b0b Mon Sep 17 00:00:00 2001 From: Benjamin Kaduk Date: Thu, 15 Dec 2016 22:12:01 -0600 Subject: [PATCH] tests: use exec to call libwrap'd executables 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 Reviewed-by: Anders Kaseorg Tested-by: Anders Kaseorg Reviewed-by: Benjamin Kaduk --- tests/libwrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libwrap b/tests/libwrap index ae32588ec4..161abd78f4 100755 --- a/tests/libwrap +++ b/tests/libwrap @@ -45,4 +45,4 @@ fi export LIBPATH shift -"$TEST_COMMAND" "$@" +exec "$TEST_COMMAND" "$@"