[hackers] [ubase] Kick off respawn in its own session || sin

From: <git_AT_suckless.org>
Date: Sun, 06 Jul 2014 22:36:38 +0200

commit 10c8b71fd235be78cd483864e32d51aa4c225dae
Author: sin <sin_AT_2f30.org>
Date: Sun Jul 6 21:35:35 2014 +0100

    Kick off respawn in its own session

diff --git a/respawn.c b/respawn.c
index 4ca657f..add9895 100644
--- a/respawn.c
+++ b/respawn.c
_AT_@ -58,6 +58,8 @@ main(int argc, char *argv[])
         if (fifo && delay > 0)
                 usage();
 
+ setsid();
+
         signal(SIGTERM, sigterm);
 
         if (fifo) {
Received on Sun Jul 06 2014 - 22:36:38 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 06 2014 - 22:48:13 CEST