| Summary: | Bad interaction between SIGPIPE and threads. | ||
|---|---|---|---|
| Product: | Base System | Reporter: | marka |
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 6.3-PRERELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
marka
2007-12-12 21:20:01 UTC
Have you tried the SO_NOSIGPIPE option to setsockopt()? It's designed for exactly the sort of thing you describe, although I'm given to believe that it only works with send*() and not write(). I'll definitely try it. The man page for socket(2) should be updated to reference SO_NOSIGPIPE where it talks about SIGPIPE being generated. State Changed From-To: open->feedback To submitter: did the suggestion fix the problem? State Changed From-To: feedback->closed submitter replies that this had been resolved ----- Forwarded message from David Schultz <das@FreeBSD.ORG> ----- From: David Schultz <das@FreeBSD.ORG> To: Mark Andrews <Mark_Andrews@isc.org>, freebsd-bugs@FreeBSD.ORG On Fri, Dec 14, 2007, Mark Andrews wrote: > It's documented in setsockopt(2). It just also needs to be documented > in socket(2). I added a note to the socket(2) manpage. Better late than never. ----- End forwarded message ----- |