diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 84d373ff37b..34966d35160 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -5139,6 +5139,7 @@ send_process (proc, buf, len, object) | |||
| 5139 | int rv; | 5139 | int rv; |
| 5140 | struct coding_system *coding; | 5140 | struct coding_system *coding; |
| 5141 | struct gcpro gcpro1; | 5141 | struct gcpro gcpro1; |
| 5142 | SIGTYPE (*volatile old_sigpipe) (); | ||
| 5142 | 5143 | ||
| 5143 | GCPRO1 (object); | 5144 | GCPRO1 (object); |
| 5144 | 5145 | ||
| @@ -5256,7 +5257,6 @@ send_process (proc, buf, len, object) | |||
| 5256 | while (len > 0) | 5257 | while (len > 0) |
| 5257 | { | 5258 | { |
| 5258 | int this = len; | 5259 | int this = len; |
| 5259 | SIGTYPE (*old_sigpipe)(); | ||
| 5260 | 5260 | ||
| 5261 | /* Decide how much data we can send in one batch. | 5261 | /* Decide how much data we can send in one batch. |
| 5262 | Long lines need to be split into multiple batches. */ | 5262 | Long lines need to be split into multiple batches. */ |
| @@ -5399,6 +5399,7 @@ send_process (proc, buf, len, object) | |||
| 5399 | #endif /* not VMS */ | 5399 | #endif /* not VMS */ |
| 5400 | else | 5400 | else |
| 5401 | { | 5401 | { |
| 5402 | signal (SIGPIPE, old_sigpipe); | ||
| 5402 | #ifndef VMS | 5403 | #ifndef VMS |
| 5403 | proc = process_sent_to; | 5404 | proc = process_sent_to; |
| 5404 | p = XPROCESS (proc); | 5405 | p = XPROCESS (proc); |