ignoring SIGPIPE does not work on OSX
Bug #1647177 reported by
RJ Skerry-Ryan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Fix Released
|
High
|
RJ Skerry-Ryan |
Bug Description
We receive a SIGPIPE if the remote broadcast server shuts down. We ignore it via pthread_sigmask to do a thread-specific ignore. For some reason, this doesn't work on OSX.
This works for me:
struct sigaction sa;
memset(&sa, 0, sizeof(sa));
sa.sa_handler = SIG_IGN;
if (sigaction(SIGPIPE, &sa, NULL) != 0) {
qDebug() << "sigaction() failed";
}
Changed in mixxx: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in mixxx: | |
status: | In Progress → Fix Committed |
milestone: | none → 2.1.0 |
Changed in mixxx: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
https:/ /github. com/mixxxdj/ mixxx/pull/ 1066/files