script: add missing exit()

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-07-29 12:10:22 +02:00
parent b923bdbe52
commit 8ef57fdf13
1 changed files with 2 additions and 0 deletions

View 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)