mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-03-28 21:38:41 +00:00
Merge pull request #445 from phusion/Theaxiom-patch-1
my_init exits with 0 on SIGINT after runit is started
This commit is contained in:
@@ -296,11 +296,8 @@ def start_runit():
|
|||||||
|
|
||||||
|
|
||||||
def wait_for_runit_or_interrupt(pid):
|
def wait_for_runit_or_interrupt(pid):
|
||||||
try:
|
|
||||||
status = waitpid_reap_other_children(pid)
|
status = waitpid_reap_other_children(pid)
|
||||||
return (True, status)
|
return (True, status)
|
||||||
except KeyboardInterrupt:
|
|
||||||
return (False, None)
|
|
||||||
|
|
||||||
|
|
||||||
def shutdown_runit_services(quiet=False):
|
def shutdown_runit_services(quiet=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user