about summary refs log tree commit diff
path: root/nitro.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-12-25 02:47:24 +0100
committerLeah Neukirchen <leah@vuxu.org>2023-12-25 02:47:24 +0100
commit2a27cbf8681e03642e974add4bb98f97e547bd67 (patch)
treedf08940a3738de3df7c90ece68e6cc2ed67f7815 /nitro.c
parentd8412bf0b2ead0fdcc32815362463c577e0b8c0e (diff)
downloadnitro-2a27cbf8681e03642e974add4bb98f97e547bd67.tar.gz
nitro-2a27cbf8681e03642e974add4bb98f97e547bd67.tar.xz
nitro-2a27cbf8681e03642e974add4bb98f97e547bd67.zip
don't bother trying to reboot in a container, exiting works just fine
Diffstat (limited to 'nitro.c')
-rw-r--r--nitro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nitro.c b/nitro.c
index ad437a8..b2862b7 100644
--- a/nitro.c
+++ b/nitro.c
@@ -1355,7 +1355,7 @@ main(int argc, char *argv[])
 	}
 
 #ifdef __linux__
-	if (pid1) {
+	if (real_pid1) {
 		dprintf(2, "- nitro: system %s\n",
 		    global_state == GLBL_WANT_REBOOT ? "reboot" : "halt");