mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-26 06:37:56 +00:00
niceload: When CTRL-C'ing niceload -p, the controlled PID should continue and not be killed.
This commit is contained in:
parent
11cbbf50cc
commit
987f90d929
10
src/niceload
10
src/niceload
|
@ -397,8 +397,14 @@ sub kill_child_TSTP {
|
|||
|
||||
sub kill_child_INT {
|
||||
my $self = $Global::process;
|
||||
::debug("SIGINT received. Killing $self->{'pid'} Exit\n");
|
||||
kill INT => $self->pgrp();
|
||||
::debug("SIGINT received.\n");
|
||||
if(not @opt::pid) {
|
||||
::debug("Killing $self->{'pid'} Exit\n");
|
||||
kill INT => $self->pgrp();
|
||||
} else {
|
||||
::debug("Continue pids $self->{'pid'} Exit\n");
|
||||
kill CONT => $self->pgrp();
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue