From: shaver Date: Sat, 26 Jul 2003 03:05:34 +0000 (+0000) Subject: Signals are hard. X-Git-Tag: v1_7_0_51~2^14~18 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e4cfb21961ff1794acfa20f66bfe9b33d8e0aee2;p=fs%2Flustre-release.git Signals are hard. --- diff --git a/lustre/tests/multiop.c b/lustre/tests/multiop.c index c656b0f..95d45f4 100755 --- a/lustre/tests/multiop.c +++ b/lustre/tests/multiop.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include @@ -23,6 +24,8 @@ char usage[] = " s stat\n" " S fstat\n"; +void null_handler(int unused) { } + int main(int argc, char **argv) { char *fname, *commands; @@ -34,6 +37,8 @@ int main(int argc, char **argv) exit(1); } + signal(SIGUSR1, null_handler); + fname = argv[1]; commands = argv[2];