]> git.eshelyaron.com Git - emacs.git/commitdiff
(send_process_trap): Unblock SIGPIPE.
authorRichard M. Stallman <rms@gnu.org>
Sat, 14 May 2005 14:06:33 +0000 (14:06 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 14 May 2005 14:06:33 +0000 (14:06 +0000)
(send_process): Reset SIGPIPE handler before reporting error.

src/process.c

index 0d2d86f1d7fe43ee68e1ee178fedb30c279f8857..aad9e70731f2f5bc1d00a3362583193eaa5d0585 100644 (file)
@@ -5108,6 +5108,7 @@ send_process_trap ()
   sigrelse (SIGPIPE);
   sigrelse (SIGALRM);
 #endif /* BSD4_1 */
+  sigunblock (sigmask (SIGPIPE));
   longjmp (send_process_frame, 1);
 }
 
@@ -5299,7 +5300,11 @@ send_process (proc, buf, len, object)
                               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