[systemd-devel] [PATCH] Allow PID 1 systemd --user instances to exit

Vito Caputo vito.caputo at coreos.com
Thu Nov 6 14:44:12 PST 2014


---
 src/core/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/main.c b/src/core/main.c
index d48604e..cd9d6ee 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -2013,7 +2013,7 @@ finish:
                           getpid() == 1 ? "freezing" : "quitting");
         }

-        if (getpid() == 1)
+        if (arg_running_as != SYSTEMD_USER && getpid() == 1)
                 freeze();

         return retval;
-- 
2.1.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141106/6d5cee47/attachment.html>


More information about the systemd-devel mailing list