[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #ORI-704946]: setpgid not working under linux in pipe_open



Harry,

> Well, I have good news on that.  I tried an experiment with a
> modification of my perl script:
> 
> #! /usr/bin/perl
> use POSIX;
> 
> $SIG{'CONT'} = 'IGNORE';
> $sigset = POSIX::SigSet->new(SIGCONT);
> $old_sigset = POSIX::SigSet->new;
> sigprocmask(SIG_BLOCK, $sigset, $old_sigset);
> for ( $i=0; $i < 60; $i++) {
> print "$i\n";
> sleep 1;
> }
> 
> I sent it a "SIGSTOP", which stopped it, and then a "SIGCONT", and it
> took off.  Looking at the kernel code the kernel is the one that
> restarts a stopped process.

Whoops!  I should have used the word "block" instead of "ignore".
My Bad.

What happens with your script if you change it to block SIGCONT?

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: ORI-704946
Department: Support LDM
Priority: Normal
Status: On Hold