]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
script: add missing exit()
authorKarel Zak <kzak@redhat.com>
Mon, 29 Jul 2019 10:10:22 +0000 (12:10 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Oct 2019 11:11:54 +0000 (13:11 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script.c

index 4dd18df8c2073eddf76b77919193a2b871aee3e7..493e79c0fdbddd4381e5712bbc5030e3ac78fa36 100644 (file)
@@ -632,6 +632,8 @@ static void __attribute__((__noreturn__)) done_log(struct script_control *ctl, c
                utempter_remove_record(ctl->master);
 #endif
        kill(ctl->child, SIGTERM);      /* make sure we don't create orphans */
+
+       exit(ctl->rc_wanted ? status : EXIT_SUCCESS);
 }
 
 static void __attribute__((__noreturn__)) done(struct script_control *ctl)