-
Notifications
You must be signed in to change notification settings - Fork 14
Sockets
Yuki Kimoto edited this page Oct 21, 2024
·
3 revisions
That's probably because you forgot to ignore SIGPIPE
.
unless (Sys::OS->is_windows) {
Sys::Signal->signal(SIGNAL->SIGPIPE, Sys::Signal->SIG_IGN);
}
See also the following topic.
https://stackoverflow.com/questions/108183/how-to-prevent-sigpipes-or-handle-them-properly