1793 |
#endif |
#endif |
1794 |
if (forkin < 0) |
if (forkin < 0) |
1795 |
report_file_error ("Opening pty", Qnil); |
report_file_error ("Opening pty", Qnil); |
1796 |
|
#if defined (RTU) || defined (UNIPLUS) || defined (DONT_REOPEN_PTY) |
1797 |
|
/* In the case that vfork is defined as fork, the parent process |
1798 |
|
(Emacs) may send some data before the child process completes |
1799 |
|
tty options setup. So we setup tty before forking. */ |
1800 |
|
child_setup_tty (forkout); |
1801 |
|
#endif /* RTU or UNIPLUS or DONT_REOPEN_PTY */ |
1802 |
#else |
#else |
1803 |
forkin = forkout = -1; |
forkin = forkout = -1; |
1804 |
#endif /* not USG, or USG_SUBTTY_WORKS */ |
#endif /* not USG, or USG_SUBTTY_WORKS */ |
2083 |
#endif /* SIGCHLD */ |
#endif /* SIGCHLD */ |
2084 |
#endif /* !POSIX_SIGNALS */ |
#endif /* !POSIX_SIGNALS */ |
2085 |
|
|
2086 |
|
#if !defined (RTU) && !defined (UNIPLUS) && !defined (DONT_REOPEN_PTY) |
2087 |
if (pty_flag) |
if (pty_flag) |
2088 |
child_setup_tty (xforkout); |
child_setup_tty (xforkout); |
2089 |
|
#endif /* not RTU and not UNIPLUS and not DONT_REOPEN_PTY */ |
2090 |
#ifdef WINDOWSNT |
#ifdef WINDOWSNT |
2091 |
pid = child_setup (xforkin, xforkout, xforkout, |
pid = child_setup (xforkin, xforkout, xforkout, |
2092 |
new_argv, 1, current_dir); |
new_argv, 1, current_dir); |