]> arthur.barton.de Git - bup.git/commit
main.py: forward SIGTSTP/SIGCONT so "C-z" will actually suspend everything.
authorRob Browning <rlb@defaultvalue.org>
Fri, 23 Aug 2013 17:23:17 +0000 (12:23 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 25 Aug 2013 18:22:03 +0000 (13:22 -0500)
commitaa6f2c87e6f1292f1fa22f618532b65a5565d604
tree735bfd42387bfee4ee409651386d20f181f41fef
parentc91bea60c7ffca26550e96435414b92307de8c35
main.py: forward SIGTSTP/SIGCONT so "C-z" will actually suspend everything.

Catch and forward SIGTSTP (as SIGSTOP) and SIGCONT to the subprocess
as we already do for SIGTERM and SIGINT so that the subprocess will
also suspend/resume.

This still leaves bup with potentially unexpected behavior since the
(detached) subprocess will never see a SIGSTOP delivered to the parent
(because SIGSTOP can't be intercepted and forwarded).  This is due to
the os.setsid() call that was originally introduced to support current
newliner arrangement (cf. b7a524ccb662c9ed3ebd786da0f45f459929ef45).

Thanks to Kalle for the report.

Reported-by: krichter722@aol.de
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/helpers.py
main.py