|
Lines 1392-1399
Link Here
|
| 1392 |
* setlogin() affects the entire process group. We don't |
1392 |
* setlogin() affects the entire process group. We don't |
| 1393 |
* want the child to be able to affect the parent. |
1393 |
* want the child to be able to affect the parent. |
| 1394 |
*/ |
1394 |
*/ |
| 1395 |
#if 0 |
1395 |
#if !defined(STREAMS_PUSH_ACQUIRES_CTTY) |
| 1396 |
/* XXX: this breaks Solaris */ |
1396 |
/* |
|
|
1397 |
* If setsid is called on Solaris, sshd will acquire the controlling |
| 1398 |
* terminal while pushing STREAMS modules. This will prevent the |
| 1399 |
* shell from acquiring it later. |
| 1400 |
*/ |
| 1397 |
if (!debug_flag && !inetd_flag && setsid() < 0) |
1401 |
if (!debug_flag && !inetd_flag && setsid() < 0) |
| 1398 |
error("setsid: %.100s", strerror(errno)); |
1402 |
error("setsid: %.100s", strerror(errno)); |
| 1399 |
#endif |
1403 |
#endif |