]> arthur.barton.de Git - bup.git/commit - main.py
Only forward signals when appropriate; on SIGTSTP suspend parent too.
authorRob Browning <rlb@defaultvalue.org>
Fri, 18 Oct 2013 18:46:05 +0000 (13:46 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 19 Oct 2013 18:48:52 +0000 (13:48 -0500)
commit9baa09bcba7bc2753c27488c7116145aed83040e
tree5788b74f1fbb4982393c9bc0cf7be9a1d830d137
parent67a38a4671e1b81ffd96b4109395a51cc2f4bbcb
Only forward signals when appropriate; on SIGTSTP suspend parent too.

Finish the main.py work, started in
aa6f2c87e6f1292f1fa22f618532b65a5565d604, which began forwarding
SIGTSTP and SIGCONT to the child process so that it would
suspend/resume with the parent.

Only forward signals to the child when appropriate -- guarded by p and
forward_signals.  After forwarding SIGTSTP (as SIGSTOP) to the child,
reset the SIGTSTP handler to its default behavior and re-send SIGTSTP
to the parent so that it will actually suspend too.

Thanks to Karl Kiniger <karl.kiniger@med.ge.com> for reporting the
problem.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
main.py