From a7569729620fa04c1a9eba2d6c65d9ec3cf478d0 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 4 Dec 2010 13:19:01 +0100 Subject: [PATCH] spawn: Create sessions for processes Each process spawned from awesome now gets its own session and process group. This makes sure they aren't connected to awesome in any way any more. This especially fixes some problems with signals. Signed-off-by: Uli Schlachter --- spawn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/spawn.c b/spawn.c index 8303fac9..3c8cf07b 100644 --- a/spawn.c +++ b/spawn.c @@ -268,6 +268,7 @@ spawn_child_callback(gpointer user_data) sigemptyset(&empty); sigprocmask(SIG_SETMASK, &empty, NULL); + setsid(); } /** Spawn a command.