Mir

Merge lp://qastaging/~raof/mir/sigPIIIIIIIPE into lp://qastaging/mir

Proposed by Chris Halse Rogers
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
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: mp+232994@code.qastaging.launchpad.net

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.

To post a comment you must log in.
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

I prefer SIGPIPE too, but I remember Daniel had some issues when testing with it. Let's see how it goes this time.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :

seems like good enough reasons to sway me to preferring one over the other. (https://code.launchpad.net/~vanvugt/mir/hangup/+merge/231696/comments/564707)
lgtm

review: Approve
Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

Looks good, but there are still instances of examples and utils using SIGHUP.

review: Needs Fixing
1889. By Chris Halse Rogers

Remove remnant SIGHUP handling

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

LGTM.

review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

After the pending SIGKILL fix lands, you will have a conflict that needs fixing here. Also the prereq branch still needs fixing (introduces a regression).

review: Needs Fixing
1890. By Chris Halse Rogers

Merged dont-signal-on-explicit-release into use-sigpipe.

1891. By Chris Halse Rogers

Fix (harmless) mis-merge

1892. By Chris Halse Rogers

Merge prereq

1893. By Chris Halse Rogers

Merged dont-signal-on-explicit-release into use-sigpipe.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1894. By Chris Halse Rogers

Merged dont-signal-on-explicit-release into use-sigpipe.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1895. By Chris Halse Rogers

Merged dont-signal-on-explicit-release into use-sigpipe.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1896. By Chris Halse Rogers

Merged dont-signal-on-explicit-release into use-sigpipe.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1897. By Chris Halse Rogers

Merged dont-signal-on-explicit-release into use-sigpipe.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

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.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches