Merge lp://qastaging/~raof/mir/sigPIIIIIIIPE into lp://qastaging/mir
Status: | Work in progress |
---|---|
Proposed branch: | lp://qastaging/~raof/mir/sigPIIIIIIIPE |
Merge into: | lp://qastaging/mir |
Prerequisite: | lp://qastaging/~raof/mir/dont-kill-the-poor-clients |
Diff against target: |
105 lines (+3/-9) 8 files modified
examples/eglapp.c (+0/-1) examples/fingerpaint.c (+0/-1) examples/multiwin.c (+0/-1) examples/progressbar.c (+0/-1) src/client/mir_connection.cpp (+1/-1) src/utils/ping.c (+0/-1) src/utils/screencast.cpp (+0/-1) tests/acceptance-tests/test_server_disconnect.cpp (+2/-2) |
To merge this branch: | bzr merge lp://qastaging/~raof/mir/sigPIIIIIIIPE |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Daniel van Vugt | Needs Fixing | ||
Cemil Azizoglu (community) | Approve | ||
Kevin DuBois (community) | Approve | ||
Alexandros Frantzis (community) | Approve | ||
Review via email:
|
This proposal supersedes a proposal from 2014-09-02.
Commit message
Use SIGPIPE rather than SIGHUP for the disconnect signal.
No one should be catching either, but SIGPIPE is what's used by everyone else in this situation.
Description of the change
Use SIGPIPE rather than SIGHUP for the disconnect signal.
No one should be catching either, but SIGPIPE is what's used by everyone else in this situation.
Unmerged revisions
- 1897. By Chris Halse Rogers
-
Merged dont-signal-
on-explicit- release into use-sigpipe. - 1896. By Chris Halse Rogers
-
Merged dont-signal-
on-explicit- release into use-sigpipe. - 1895. By Chris Halse Rogers
-
Merged dont-signal-
on-explicit- release into use-sigpipe. - 1894. By Chris Halse Rogers
-
Merged dont-signal-
on-explicit- release into use-sigpipe. - 1893. By Chris Halse Rogers
-
Merged dont-signal-
on-explicit- release into use-sigpipe. - 1892. By Chris Halse Rogers
-
Merge prereq
- 1891. By Chris Halse Rogers
-
Fix (harmless) mis-merge
- 1890. By Chris Halse Rogers
-
Merged dont-signal-
on-explicit- release into use-sigpipe. - 1889. By Chris Halse Rogers
-
Remove remnant SIGHUP handling
- 1888. By Chris Halse Rogers
-
Use SIGPIPE rather than SIGHUP for disconnect signal.
Signals are the worst possible API, so don't use them, people! Register a lifecycle callback
and wait for mir_lifecycle_connection_ lost to detect server disconnects! For clients that just don't care, use SIGPIPE. That's what libwayland and libX11 use.
I prefer SIGPIPE too, but I remember Daniel had some issues when testing with it. Let's see how it goes this time.