diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/process.c b/src/process.c index 1c210649024..36ca1cf6784 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1752,7 +1752,7 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir) | |||
| 1752 | tcgetattr (xforkin, &t); | 1752 | tcgetattr (xforkin, &t); |
| 1753 | t.c_lflag = LDISC1; | 1753 | t.c_lflag = LDISC1; |
| 1754 | if (tcsetattr (xforkin, TCSANOW, &t) < 0) | 1754 | if (tcsetattr (xforkin, TCSANOW, &t) < 0) |
| 1755 | emacs_write (1, "create_process/tcsetattr LDISC1 failed\n", 39); | 1755 | emacs_perror ("create_process/tcsetattr LDISC1"); |
| 1756 | } | 1756 | } |
| 1757 | #else | 1757 | #else |
| 1758 | #if defined (NTTYDISC) && defined (TIOCSETD) | 1758 | #if defined (NTTYDISC) && defined (TIOCSETD) |
| @@ -1799,10 +1799,8 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir) | |||
| 1799 | 1799 | ||
| 1800 | if (xforkin < 0) | 1800 | if (xforkin < 0) |
| 1801 | { | 1801 | { |
| 1802 | emacs_write (1, "Couldn't open the pty terminal ", 31); | 1802 | emacs_perror (pty_name); |
| 1803 | emacs_write (1, pty_name, strlen (pty_name)); | 1803 | _exit (EXIT_CANCELED); |
| 1804 | emacs_write (1, "\n", 1); | ||
| 1805 | _exit (1); | ||
| 1806 | } | 1804 | } |
| 1807 | 1805 | ||
| 1808 | } | 1806 | } |
| @@ -5503,7 +5501,7 @@ send_process (Lisp_Object proc, const char *buf, ptrdiff_t len, | |||
| 5503 | written = emacs_gnutls_write (p, cur_buf, cur_len); | 5501 | written = emacs_gnutls_write (p, cur_buf, cur_len); |
| 5504 | else | 5502 | else |
| 5505 | #endif | 5503 | #endif |
| 5506 | written = emacs_write (outfd, cur_buf, cur_len); | 5504 | written = emacs_write_sig (outfd, cur_buf, cur_len); |
| 5507 | rv = (written ? 0 : -1); | 5505 | rv = (written ? 0 : -1); |
| 5508 | #ifdef ADAPTIVE_READ_BUFFERING | 5506 | #ifdef ADAPTIVE_READ_BUFFERING |
| 5509 | if (p->read_output_delay > 0 | 5507 | if (p->read_output_delay > 0 |