Merge lp:~nataliabidart/ubuntu-sso-client/add-sighup-handler into lp:ubuntu-sso-client
Proposed by
Natalia Bidart
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | John Lenton | ||||
Approved revision: | 619 | ||||
Merged at revision: | 618 | ||||
Proposed branch: | lp:~nataliabidart/ubuntu-sso-client/add-sighup-handler | ||||
Merge into: | lp:ubuntu-sso-client | ||||
Diff against target: |
42 lines (+18/-0) 1 file modified
bin/ubuntu-sso-login (+18/-0) |
||||
To merge this branch: | bzr merge lp:~nataliabidart/ubuntu-sso-client/add-sighup-handler | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John Lenton (community) | Approve | ||
Roman Yepishev (community) | fieldtest | Approve | |
Review via email:
|
Commit message
* Added handler for SIGHUP to stop the service (LP: #633300).
Description of the change
To test, please do:
nessita@
And in other console, kill -SIGHUP <pid of ubuntu-sso-login>
To confirm the handler is working, you can see the logs:
Installing the Twisted gtk2reactor.
Hooking up SIGHUP with handler <function sighup_handler at 0x13f1050>.
Starting Ubuntu SSO login manager for bus 'com.ubuntu.sso'.
Stoping Ubuntu SSO login manager since SIGHUP was received .
To post a comment you must log in.
Yup, it hangs up though w/o this code the process is killed with SIGHUP too :)