niceload: When CTRL-C'ing niceload -p, the controlled PID should continue and not be killed.

This commit is contained in:
Ole Tange 2013-08-27 10:58:41 +02:00
parent 11cbbf50cc
commit 987f90d929

View file

@ -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;
}