Merge lp:~nataliabidart/ubuntu-sso-client/add-sighup-handler into lp:ubuntu-sso-client
Proposed by
Natalia Bidart
on 2010-09-08
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | John Lenton on 2010-09-08 | ||||
| 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 | Approve on 2010-09-08 | ||
| Roman Yepishev (community) | fieldtest | 2010-09-08 | Approve on 2010-09-08 |
|
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.
lp:~nataliabidart/ubuntu-sso-client/add-sighup-handler
updated
on 2010-09-08
- 619. By Natalia Bidart on 2010-09-08
-
Added disclaimer on SIGHUP handler.

Yup, it hangs up though w/o this code the process is killed with SIGHUP too :)