Closed remram44 closed 10 years ago
But we can also terminate ReproZip in this case, right? There is no point in packaging an experiment that has been terminated anyway.
Sonali ran into this so it should probably be fixed. My idea is that a single Ctrl+C would be delivered as normal (TODO: how is it normally delivered?), while two Ctrl+C would trigger the current behavior (kill everyone).
Well this was pretty simple: the signal already gets delivered to the whole process group, so I don't have to do anything.
76f753c5
Pressing Ctrl+C twice (in under 2 seconds) triggers the current behavior of sending SIGKILL to every traced process.
Right now, SIGINT (ctrl+C) makes reprozip terminate (and SIGKILL every process that is still running).
Maybe it should just send a SIGINT to the first started process the first time ctrl+C is pressed.