summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-01-24 14:30:57 +0000
committerEd Schouten <ed@FreeBSD.org>2010-01-24 14:30:57 +0000
commiteb63bf5c833bb930c7998a47bd5c8363e02c122f (patch)
treec79d086f48d4ffc192fc3a36339f37891765dd3e /lib
parent2af4053ea7948a4c885e88de893379a4b02f8450 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/login_tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/login_tty.c b/lib/libutil/login_tty.c
index a14e244e45aa..92dc87fe710c 100644
--- a/lib/libutil/login_tty.c
+++ b/lib/libutil/login_tty.c
@@ -50,7 +50,7 @@ login_tty(int fd)
s = setsid();
if (s == -1)
- return (-1);
+ s = getsid(0);
if (tcsetsid(fd, s) == -1)
return (-1);
(void) dup2(fd, 0);