diff --git a/src/niceload b/src/niceload index 4830e0eb..2a48db11 100755 --- a/src/niceload +++ b/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; }