mirror of
/repos/baseimage-docker.git
synced 2026-02-27 17:41:59 +01:00
Fix my_init not properly exiting with a non-zero exit status when Ctrl-C is pressed.
This commit is contained in:
@@ -291,6 +291,7 @@ def main(args):
|
||||
info("%s exited with status %d." % (args.main_command[0], exit_status))
|
||||
except KeyboardInterrupt:
|
||||
stop_child_process(args.main_command[0], pid)
|
||||
raise
|
||||
except BaseException as s:
|
||||
warn("An error occurred. Aborting.")
|
||||
stop_child_process(args.main_command[0], pid)
|
||||
|
||||
Reference in New Issue
Block a user