You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Run go program on darwin/386
2. kill -SIGPIPE the process (or if using tcp code, "nc" to it and ctrl-c)
3. Program is killed
What is the expected output? What do you see instead?
Program should not be killed by SIGPIPE
What is your $GOOS? $GOARCH?
GOOS=darwin, GOARCH=386
Which revision are you sync'ed to? (hg log -l 1)
3975:b51fd2d6c160
Please provide any additional information below.
Attached a patch that uses sigprocmask to block the SIGPIPE. It seems like
sigaction/signal don't work for SIGPIPE in threaded environments?
This issue likely affects 64-bit as well, but I don't have a machine to test it
on.
This is fixed as of http://code.google.com/p/go/source/detail?r=c693dbab33.
The signal handlers were being installed improperly
so the usual path wasn't working.
You can revert your change and then run
"hg pull; hg update release" to get a working copy.
by gduffy:
Attachments:
The text was updated successfully, but these errors were encountered: