Bug#354780: [Buildd-tools-devel] Bug#354780: schroot: dangling schroot sessions if killed with -HUP

Roger Leigh rleigh at whinlatter.ukfsn.org
Wed Mar 1 12:26:48 UTC 2006


Steve Langasek <vorlon at debian.org> writes:

> If an schroot process is killed with -HUP (caused, e.g, by a shell being
> terminated by an ssh timeout or my laptop crashing due to the evils of
> NDISWRAPPER), the login session is not cleaned up.  This potentially leaves
> many bind mounts, lv snapshots, etc. that must be cleaned by hand.
>
> Please trap SIGHUP in schroot and handle it as you handle other session
> terminations.

Please could you try
http://people.debian.org/~rleigh/schroot-0.2.6.tar.bz2 and see if this
handles it acceptably?

I'm afraid there's no patch, because alioth CVS is down.  The main
changes are
* schroot/schroot.cc: Save and restore termios.
* schroot/sbuild-session.cc: Trap and handle SIGHUP while waiting on
  child processes.
There are some additional changes to handle broken session cleanup
more gracefully.

There are also a number of additional changes since the last release,
documented in ChangeLog and debian/changelog.


Regards,
Roger

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gutenprint.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20060301/1b936d11/attachment.pgp


More information about the Buildd-tools-devel mailing list