release locks when dying from SIGHUP
Bug #41433 reported by
Martin Pool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Low
|
Unassigned |
Bug Description
bzr make some efforts to keep the ssh connection around and release locks when it receives a SIGINT (e.g. C-c), translated by Python into a KeyboardInterrupt. Can this also be done for SIGHUP (that typically occurs when the virtual terminal of a process is closed.)
To post a comment you must log in.
Note that SIGINT is done through a special Python mechanism that raises an exception on the main python thread. I'm not sure what can be done from pure Python, or even from a C extension.