Whamcloud - gitweb
LU-346 fix conf-sanity test_23a
authorBobi Jam <bobijam@whamcloud.com>
Tue, 5 Jul 2011 09:19:40 +0000 (17:19 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 7 Jul 2011 22:18:03 +0000 (15:18 -0700)
commitcc840c750bf6f4ec8323decbfcf89e0279eea245
tree9389c9d2f510b3b05bb306bf7b67ca89d6064df9
parent9daaa737c7ff939d52347963f05bc673cbc5a05c
LU-346 fix conf-sanity test_23a

ctrl-c sends SIGINT signal, and the SIGINT will be delivered to the
process tree, but it does not work on non-job-controlled (usually in
script) child process.

SIGTERM works on child process, but it does not spread offspring
processes, so we send it to all lustre mount processes.

excerpt from bash manpage:

set [--abefhkmnptuvxBCEHPT] [-o option-name] [arg ...]
set [+abefhkmnptuvxBCEHPT] [+o option-name] [arg ...]
 -m      Monitor mode. Job control is enabled. This option is on by
         default for interactive shells on systems that support it.
Non-builtin  commands run by bash have signal handlers set to the
values inherited by the shell from its parent.  When job control is
not in effect, asynchronous commands ignore SIGINT and SIGQUIT in
addition to these inherited handlers.

Change-Id: I099fe53373470ad2182f7bd20ff88cb896b1f955
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1049
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/conf-sanity.sh