]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fsck: clear SIGCHLD inherited setting
authorKarel Zak <kzak@redhat.com>
Mon, 15 Nov 2021 13:44:02 +0000 (14:44 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 15 Nov 2021 13:56:51 +0000 (14:56 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fsck.c

index 8d92ada6e57bc54e09b90c9ddd7666b113e74bed..505952c811ea950ee3547f9ca069b82f583487e3 100644 (file)
@@ -1633,6 +1633,8 @@ int main(int argc, char *argv[])
        if (!notitle)
                printf(UTIL_LINUX_VERSION);
 
+       signal(SIGCHLD, SIG_DFL);       /* clear any inherited settings */
+
        load_fs_info();
 
        fsck_path = xstrdup(path && *path ? path : FSCK_DEFAULT_PATH);