Mercurial > emacs
diff src/process.c @ 62334:f9dc4e8a41fe
(send_process_trap): Unblock SIGPIPE.
(send_process): Reset SIGPIPE handler before reporting error.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Sat, 14 May 2005 14:06:33 +0000 |
| parents | d1daa8bf79fd |
| children | 7f6a053bbca4 8b66fddd72c5 f042e7c0fe20 |
line wrap: on
line diff
--- a/src/process.c Sat May 14 14:05:59 2005 +0000 +++ b/src/process.c Sat May 14 14:06:33 2005 +0000 @@ -5108,6 +5108,7 @@ sigrelse (SIGPIPE); sigrelse (SIGALRM); #endif /* BSD4_1 */ + sigunblock (sigmask (SIGPIPE)); longjmp (send_process_frame, 1); } @@ -5299,7 +5300,11 @@ 0, datagram_address[outfd].sa, datagram_address[outfd].len); if (rv < 0 && errno == EMSGSIZE) - report_file_error ("sending datagram", Fcons (proc, Qnil)); + { + signal (SIGPIPE, old_sigpipe); + report_file_error ("sending datagram", + Fcons (proc, Qnil)); + } } else #endif
