summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index 86441cff1..0f2b2a3ce 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1400,8 +1400,12 @@ 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 0 1403#if !defined(STREAMS_PUSH_ACQUIRES_CTTY)
1404 /* XXX: this breaks Solaris */ 1404 /*
1405 * If setsid is called on Solaris, sshd will acquire the controlling
1406 * terminal while pushing STREAMS modules. This will prevent the
1407 * shell from acquiring it later.
1408 */
1405 if (!debug_flag && !inetd_flag && setsid() < 0) 1409 if (!debug_flag && !inetd_flag && setsid() < 0)
1406 error("setsid: %.100s", strerror(errno)); 1410 error("setsid: %.100s", strerror(errno));
1407#endif 1411#endif