From 4aefdeab24e6e075e7ac85f415a9913d1e49addd Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 29 Aug 2002 19:26:23 +0000 Subject: [PATCH] (create_process): Test USG_SUBTTY_WORKS. --- src/ChangeLog | 11 ++++++++++- src/process.c | 8 ++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 672c2ec67ad..d205113d641 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,13 @@ +2002-08-29 Richard M. Stallman + + * sysdep.c [!VMS]: Include sys/file.h. + (sys_signal): Test BROKEN_SA_RESTART. + + * s/hpux11.h (USG_SUBTTY_WORKS): Defined. + (BROKEN_SA_RESTART): Defined. + + * process.c (create_process): Test USG_SUBTTY_WORKS. + 2002-08-27 Kenichi Handa * xdisp.c (get_next_display_element): In unibyte case, don't use @@ -137,7 +147,6 @@ * window.c (Fset_window_hscroll): Doc fix. ->>>>>>> 1.1914.2.171 2002-05-31 Gerd Moellmann * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P. diff --git a/src/process.c b/src/process.c index d1ad9c7d5d5..a6f009668db 100644 --- a/src/process.c +++ b/src/process.c @@ -1329,9 +1329,9 @@ create_process (process, new_argv, current_dir) if (inchannel >= 0) { -#ifndef USG - /* On USG systems it does not work to open the pty's tty here - and then close and reopen it in the child. */ +#if ! defined (USG) || defined (USG_SUBTTY_WORKS) + /* On most USG systems it does not work to open the pty's tty here, + then close it and reopen it in the child. */ #ifdef O_NOCTTY /* Don't let this terminal become our controlling terminal (in case we don't have one). */ @@ -1343,7 +1343,7 @@ create_process (process, new_argv, current_dir) report_file_error ("Opening pty", Qnil); #else forkin = forkout = -1; -#endif /* not USG */ +#endif /* not USG, or USG_SUBTTY_WORKS */ pty_flag = 1; } else -- 2.39.2