diff options
author | R <rkkoszewski@gmail.com> | 2019-08-17 12:44:48 +0200 |
---|---|---|
committer | R <rkkoszewski@gmail.com> | 2019-08-17 12:44:48 +0200 |
commit | 068f570b63541960628c6d4cbc1d00fcde09a939 (patch) | |
tree | 41f808edffb47eeba3a1cec59455473f446f58c7 /patches | |
parent | 521c822f1dfa63ad30b7bae718aff5ac3ea63f2c (diff) |
Add reboot event to allow rebooting of the container
Diffstat (limited to 'patches')
-rw-r--r-- | patches/procd-openwrt-18.06/0003-docker-fix-problem-stopping-container.patch | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/patches/procd-openwrt-18.06/0003-docker-fix-problem-stopping-container.patch b/patches/procd-openwrt-18.06/0003-docker-fix-problem-stopping-container.patch index 394ac26..650165e 100644 --- a/patches/procd-openwrt-18.06/0003-docker-fix-problem-stopping-container.patch +++ b/patches/procd-openwrt-18.06/0003-docker-fix-problem-stopping-container.patch @@ -11,7 +11,7 @@ diff --git a/state.c b/state.c index ccf4104..bd59d7e 100644 --- a/state.c +++ b/state.c -@@ -157,18 +157,7 @@ static void state_enter(void) +@@ -157,18 +157,8 @@ static void state_enter(void) else LOG("- reboot -\n"); @@ -27,6 +27,7 @@ index ccf4104..bd59d7e 100644 - } - while (1) - sleep(1); ++ reboot(reboot_event); + exit(0); #else exit(0); |