changeset 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 80f8fd5fdea6
children 401714f3f9de
files src/process.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
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