[buildd-tools-devel] Bug#679499: Bug#679499: Bug#679499: schroot: suspend fails from chroot

Roger Leigh rleigh at codelibre.net
Mon Dec 10 20:39:03 UTC 2012


On Mon, Dec 10, 2012 at 07:15:36PM +0000, Toby Speight wrote:
> 0> In article <20121014231616.GN5996 at codelibre.net>,
> 0> Roger Leigh <URL:mailto:rleigh at codelibre.net> ("Roger") wrote:
> 
> Roger> I'll try trapping SIGCONT/SIGSTOP, and then raise the same signal
> Roger> on ourselves.  However, this could open a horrible can of worms,
> Roger> e.g. if you send SIGCONT to bash while schroot is stopped.
> 
> I've tried that scenario, and the child bash does continue okay when
> given SIGCONT, and resuming schroot gets me back correctly.  Weird
> things happen if the child exits when schroot is not in the foreground,
> though - it seems that the parent (of schroot) is told to stop.  In
> other words, if we do something like:

Many thanks for the patch.  I'm afraid I'm a little busy to look at
it in detail right now; maybe while I'm home for Christmas.

I do have a lurking suspicion that the odd corner cases are why
ssh doesn't implement this; it's safer to not try to deal with
the problem.  After being bitten by trying to be too clever in
the past with job control (in sbuild), I'm somewhat wary of
changing things here unless we can be absolutely certain they
won't cause problems.  However, in general your patch looks
reasonable; if it doesn't solve all the problems, it's at least
on the right track.


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800



More information about the Buildd-tools-devel mailing list