diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2010-01-24 14:30:57 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2010-01-24 14:30:57 +0000 |
| commit | eb63bf5c833bb930c7998a47bd5c8363e02c122f (patch) | |
| tree | c79d086f48d4ffc192fc3a36339f37891765dd3e | |
| parent | 2af4053ea7948a4c885e88de893379a4b02f8450 (diff) | |
Notes
| -rw-r--r-- | lib/libutil/login_tty.c | 2 |
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); |
