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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-12-04 13:19:01 +01:00
parent 03010ca5c2
commit a756972962
1 changed files with 1 additions and 0 deletions

View File

@ -268,6 +268,7 @@ spawn_child_callback(gpointer user_data)
sigemptyset(&empty);
sigprocmask(SIG_SETMASK, &empty, NULL);
setsid();
}
/** Spawn a command.