Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690