Whamcloud - gitweb
e2fsck: make e2fsck sigcatcher use SIGCHLD rather than SIGCLD
authorTheodore Ts'o <tytso@mit.edu>
Wed, 5 Oct 2011 18:47:09 +0000 (14:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 5 Oct 2011 18:47:09 +0000 (14:47 -0400)
SIGCHLD is more portable than SIGCLD, which is a Linux specific thing

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/sigcatcher.c

index 6591aa9..10b9328 100644 (file)
@@ -356,7 +356,7 @@ static void die_signal_handler(int signum, siginfo_t *siginfo, void *context)
               fprintf(stderr, "si_code=%s ",
                       lookup_table_fallback(siginfo->si_code,
                                             sigbus_code_table));
-       else if (signum == SIGCLD)
+       else if (signum == SIGCHLD)
               fprintf(stderr, "si_code=%s ",
                       lookup_table_fallback(siginfo->si_code,
                                             sigcld_code_table));