Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SIGPIPEs associated with parts #21

Open
mxw opened this issue May 27, 2012 · 2 comments
Open

Fix SIGPIPEs associated with parts #21

mxw opened this issue May 27, 2012 · 2 comments
Assignees
Milestone

Comments

@mxw
Copy link
Member

mxw commented May 27, 2012

Parting sometimes causes SIGPIPEs, e.g., when the write&flush within g_io_channel_shutdown is invoked via paxos_drop_connection.

@ghost ghost assigned zenazn May 27, 2012
@mxw
Copy link
Member Author

mxw commented May 27, 2012

They also occur independently of g_io_channel_shutdown; I just ran traces/1.trace; when screen 2 parted, screen 1 got a SIGPIPE when it tried to write. I'm guessing that maybe the destruction of peers isn't total? Or maybe we try to write to a dead peer before its death is noticed and paxos_drop_connection is invoked by the I/O functions?

@zenazn
Copy link
Member

zenazn commented May 30, 2012

I'm pretty sure SIGPIPEs only occur for unix domain sockets, and won't be an issue when we switch to TCP/UDP/???, which don't error out through signals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants