From 3227f13ea5a31e6f94d98ddc3b8c5a42d2f7db51 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Tue, 12 Apr 2011 11:19:56 +0200 Subject: [PATCH] userplex: Run each handler in its own session. --- src/userplex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/userplex.c b/src/userplex.c index b66490f..699cbe5 100644 --- a/src/userplex.c +++ b/src/userplex.c @@ -53,6 +53,7 @@ static void login(struct passwd *pwd) { int fd; + setsid(); if(getuid() == 0) { if(initgroups(pwd->pw_name, pwd->pw_gid)) { flog(LOG_ERR, "could not init group list for %s: %s", pwd->pw_name, strerror(errno)); -- 2.11.0