Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d433123
)
userplex: Run each handler in its own session.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 12 Apr 2011 09:19:56 +0000
(11:19 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 12 Apr 2011 09:19:56 +0000
(11:19 +0200)
src/userplex.c
patch
|
blob
|
blame
|
history
diff --git
a/src/userplex.c
b/src/userplex.c
index
b66490f
..
699cbe5
100644
(file)
--- 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));