While writing the test I first missed the preexec_fn=os.setsid, and because interrupt_wait_and_kill uses signal_group, the test process got a SIGINT as well, stopping the test. This made me wonder about the assert in signal_group:
os.getgid gives you the group id of the user running the process, not the process group id of the current procces, no? So maybe assert gid != os.getpgid(0) was what was meant? I'm happy to fix that too.
fixes #6.
While writing the test I first missed the
preexec_fn=os.setsid
, and becauseinterrupt_wait_and_kill
usessignal_group
, the test process got aSIGINT
as well, stopping the test. This made me wonder about theassert
insignal_group
:os.getgid
gives you the group id of the user running the process, not the process group id of the current procces, no? So maybeassert gid != os.getpgid(0)
was what was meant? I'm happy to fix that too.