1329 |
|
|
1330 |
if (inchannel >= 0) |
if (inchannel >= 0) |
1331 |
{ |
{ |
1332 |
#ifndef USG |
#if ! defined (USG) || defined (USG_SUBTTY_WORKS) |
1333 |
/* On USG systems it does not work to open the pty's tty here |
/* On most USG systems it does not work to open the pty's tty here, |
1334 |
and then close and reopen it in the child. */ |
then close it and reopen it in the child. */ |
1335 |
#ifdef O_NOCTTY |
#ifdef O_NOCTTY |
1336 |
/* Don't let this terminal become our controlling terminal |
/* Don't let this terminal become our controlling terminal |
1337 |
(in case we don't have one). */ |
(in case we don't have one). */ |
1343 |
report_file_error ("Opening pty", Qnil); |
report_file_error ("Opening pty", Qnil); |
1344 |
#else |
#else |
1345 |
forkin = forkout = -1; |
forkin = forkout = -1; |
1346 |
#endif /* not USG */ |
#endif /* not USG, or USG_SUBTTY_WORKS */ |
1347 |
pty_flag = 1; |
pty_flag = 1; |
1348 |
} |
} |
1349 |
else |
else |