release locks when dying from SIGHUP

Bug #41433 reported by Martin Pool
This bug report is a duplicate of:  Bug #41476: catch other signals and unwind. Edit Remove
2
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.)

Revision history for this message
Martin Pool (mbp) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.