Cuberite Forum

Full Version: SIGPIPE kills the server occasionally
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I get an occasional SIGPIPE (in a webadmin connection handling thread) which kills the server. Since I don't understand Unix signals much, I'd like to ask someone more experienced to have a look at this.

I found this in a simple google search: https://www.mail-archive.com/libevent-us...00998.html
This (and the replies) indicate that this issue would be fixed by setting some signal block on server startup.
It looks like a fairly trivial change to NonCtrlHandler to ignore sigpipe. Simply check if the parameter is sigpipe in the same way we handle the other signals, then send ourselves sigignore. I'd make the change now but github won't let me make changes on my mobile.