diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/process.c b/src/process.c index 49340b120ef..8ab73bd9ae6 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -690,11 +690,7 @@ allocate_pty (char pty_name[PTY_NAME_SIZE]) | |||
| 690 | if (faccessat (AT_FDCWD, pty_name, R_OK | W_OK, AT_EACCESS) != 0) | 690 | if (faccessat (AT_FDCWD, pty_name, R_OK | W_OK, AT_EACCESS) != 0) |
| 691 | { | 691 | { |
| 692 | emacs_close (fd); | 692 | emacs_close (fd); |
| 693 | # ifndef __sgi | ||
| 694 | continue; | 693 | continue; |
| 695 | # else | ||
| 696 | return -1; | ||
| 697 | # endif /* __sgi */ | ||
| 698 | } | 694 | } |
| 699 | setup_pty (fd); | 695 | setup_pty (fd); |
| 700 | return fd; | 696 | return fd; |
| @@ -1886,9 +1882,8 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir) | |||
| 1886 | /* Make the pty be the controlling terminal of the process. */ | 1882 | /* Make the pty be the controlling terminal of the process. */ |
| 1887 | #ifdef HAVE_PTYS | 1883 | #ifdef HAVE_PTYS |
| 1888 | /* First, disconnect its current controlling terminal. */ | 1884 | /* First, disconnect its current controlling terminal. */ |
| 1889 | /* We tried doing setsid only if pty_flag, but it caused | 1885 | if (pty_flag) |
| 1890 | process_set_signal to fail on SGI when using a pipe. */ | 1886 | setsid (); |
| 1891 | setsid (); | ||
| 1892 | /* Make the pty's terminal the controlling terminal. */ | 1887 | /* Make the pty's terminal the controlling terminal. */ |
| 1893 | if (pty_flag && forkin >= 0) | 1888 | if (pty_flag && forkin >= 0) |
| 1894 | { | 1889 | { |