summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-09-02 13:33:23 +0000
committerMikael Magnusson <mikma@users.sourceforge.net>2019-09-02 17:33:10 +0000
commitfa8378ce1103bce0a5d2c43721dfa1d4ae9c66d3 (patch)
treefe866ed144c07db7721f1946297f5b780b8969fb /patches
parent7bc64a34f57603f87651cb9b51a3827fdb5ca4c7 (diff)
Port PR #15 to procd master branch
Diffstat (limited to 'patches')
-rw-r--r--patches/procd-master/0001-state-support-reboot-of-containers.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/patches/procd-master/0001-state-support-reboot-of-containers.patch b/patches/procd-master/0001-state-support-reboot-of-containers.patch
new file mode 100644
index 0000000..867c256
--- /dev/null
+++ b/patches/procd-master/0001-state-support-reboot-of-containers.patch
@@ -0,0 +1,28 @@
+From d684a1f21883c8ffc43c9aff8b1d2bb526e15cc3 Mon Sep 17 00:00:00 2001
+From: Mikael Magnusson <mikma@users.sourceforge.net>
+Date: Mon, 2 Sep 2019 14:53:20 +0200
+Subject: [PATCH] state: support reboot of containers
+
+---
+ state.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/state.c b/state.c
+index 4737d01..0ca3dca 100644
+--- a/state.c
++++ b/state.c
+@@ -172,8 +172,10 @@ static void state_enter(void)
+
+ while (1)
+ sleep(1);
+- } else
++ } else {
++ reboot(reboot_event);
+ exit(0);
++ }
+ #else
+ exit(0);
+ #endif
+--
+2.17.1
+