From 8ef57fdf137c40f33169e45a359ea156bcba9bf7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 29 Jul 2019 12:10:22 +0200 Subject: [PATCH] script: add missing exit() Signed-off-by: Karel Zak --- term-utils/script.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/term-utils/script.c b/term-utils/script.c index 4dd18df8c2..493e79c0fd 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -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) -- 2.47.2