diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1400,11 +1400,11 @@ main(int ac, char **av) | |||
1400 | * setlogin() affects the entire process group. We don't | 1400 | * setlogin() affects the entire process group. We don't |
1401 | * want the child to be able to affect the parent. | 1401 | * want the child to be able to affect the parent. |
1402 | */ | 1402 | */ |
1403 | #if !defined(STREAMS_PUSH_ACQUIRES_CTTY) | 1403 | #if !defined(SSHD_ACQUIRES_CTTY) |
1404 | /* | 1404 | /* |
1405 | * If setsid is called on Solaris, sshd will acquire the controlling | 1405 | * If setsid is called, on some platforms sshd will later acquire a |
1406 | * terminal while pushing STREAMS modules. This will prevent the | 1406 | * controlling terminal which will result in "could not set |
1407 | * shell from acquiring it later. | 1407 | * controlling tty" errors. |
1408 | */ | 1408 | */ |
1409 | if (!debug_flag && !inetd_flag && setsid() < 0) | 1409 | if (!debug_flag && !inetd_flag && setsid() < 0) |
1410 | error("setsid: %.100s", strerror(errno)); | 1410 | error("setsid: %.100s", strerror(errno)); |