aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-09-21 08:03:30 +0000
committerYAMAMOTO Mitsuharu2005-09-21 08:03:30 +0000
commit21375f1e3352e37082ab1f14e6759134e806ccc0 (patch)
treeb7820aa38202f802a835507594a54189ec50191d /src/process.c
parent2f2db7cc5821edca922195fde2f3ae9467974a99 (diff)
downloademacs-21375f1e3352e37082ab1f14e6759134e806ccc0.tar.gz
emacs-21375f1e3352e37082ab1f14e6759134e806ccc0.zip
(create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
Setup slave tty options before forking.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c
index 18a446e9561..6f41788a45c 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1793,6 +1793,12 @@ create_process (process, new_argv, current_dir)
1793#endif 1793#endif
1794 if (forkin < 0) 1794 if (forkin < 0)
1795 report_file_error ("Opening pty", Qnil); 1795 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 */
1796#else 1802#else
1797 forkin = forkout = -1; 1803 forkin = forkout = -1;
1798#endif /* not USG, or USG_SUBTTY_WORKS */ 1804#endif /* not USG, or USG_SUBTTY_WORKS */
@@ -2077,8 +2083,10 @@ create_process (process, new_argv, current_dir)
2077#endif /* SIGCHLD */ 2083#endif /* SIGCHLD */
2078#endif /* !POSIX_SIGNALS */ 2084#endif /* !POSIX_SIGNALS */
2079 2085
2086#if !defined (RTU) && !defined (UNIPLUS) && !defined (DONT_REOPEN_PTY)
2080 if (pty_flag) 2087 if (pty_flag)
2081 child_setup_tty (xforkout); 2088 child_setup_tty (xforkout);
2089#endif /* not RTU and not UNIPLUS and not DONT_REOPEN_PTY */
2082#ifdef WINDOWSNT 2090#ifdef WINDOWSNT
2083 pid = child_setup (xforkin, xforkout, xforkout, 2091 pid = child_setup (xforkin, xforkout, xforkout,
2084 new_argv, 1, current_dir); 2092 new_argv, 1, current_dir);