Commit 2cf5c809 authored by Brendan O'Dea's avatar Brendan O'Dea

Ignore SIGPIPE such that write returns EPIPE.

Currently a http server will be killed on receipt of SIGPIPE
if a client closes a socket which the server is trying to
write to.

R=rsc
APPROVED=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=27959
CL=28055
parent 7326a389
...@@ -21,7 +21,7 @@ static SigTab sigtab[] = { ...@@ -21,7 +21,7 @@ static SigTab sigtab[] = {
/* 10 */ C, "SIGBUS: bus error", /* 10 */ C, "SIGBUS: bus error",
/* 11 */ C, "SIGSEGV: segmentation violation", /* 11 */ C, "SIGSEGV: segmentation violation",
/* 12 */ C, "SIGSYS: bad system call", /* 12 */ C, "SIGSYS: bad system call",
/* 13 */ 0, "SIGPIPE: write to broken pipe", /* 13 */ I, "SIGPIPE: write to broken pipe",
/* 14 */ 0, "SIGALRM: alarm clock", /* 14 */ 0, "SIGALRM: alarm clock",
/* 15 */ 0, "SIGTERM: termination", /* 15 */ 0, "SIGTERM: termination",
/* 16 */ 0, "SIGURG: urgent condition on socket", /* 16 */ 0, "SIGURG: urgent condition on socket",
......
...@@ -21,7 +21,7 @@ static SigTab sigtab[] = { ...@@ -21,7 +21,7 @@ static SigTab sigtab[] = {
/* 10 */ 0, "SIGUSR1: user-defined signal 1", /* 10 */ 0, "SIGUSR1: user-defined signal 1",
/* 11 */ C, "SIGSEGV: segmentation violation", /* 11 */ C, "SIGSEGV: segmentation violation",
/* 12 */ 0, "SIGUSR2: user-defined signal 2", /* 12 */ 0, "SIGUSR2: user-defined signal 2",
/* 13 */ 0, "SIGPIPE: write to broken pipe", /* 13 */ I, "SIGPIPE: write to broken pipe",
/* 14 */ 0, "SIGALRM: alarm clock", /* 14 */ 0, "SIGALRM: alarm clock",
/* 15 */ 0, "SIGTERM: termination", /* 15 */ 0, "SIGTERM: termination",
/* 16 */ 0, "SIGSTKFLT: stack fault", /* 16 */ 0, "SIGSTKFLT: stack fault",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment