mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-29 09:27: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
|
@ -397,8 +397,14 @@ sub kill_child_TSTP {
|
||||||
|
|
||||||
sub kill_child_INT {
|
sub kill_child_INT {
|
||||||
my $self = $Global::process;
|
my $self = $Global::process;
|
||||||
::debug("SIGINT received. Killing $self->{'pid'} Exit\n");
|
::debug("SIGINT received.\n");
|
||||||
|
if(not @opt::pid) {
|
||||||
|
::debug("Killing $self->{'pid'} Exit\n");
|
||||||
kill INT => $self->pgrp();
|
kill INT => $self->pgrp();
|
||||||
|
} else {
|
||||||
|
::debug("Continue pids $self->{'pid'} Exit\n");
|
||||||
|
kill CONT => $self->pgrp();
|
||||||
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue