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,

> P.S.  I checked this on Solaris 10.  It does the same thing.  I'm
> wondering if this is a requirement of POSIX, or if it is a case of great
> minds thinking alike.

I think the code that handles signal blocking is executed before teh
code that determines if the signal's being ignored, which is
executed in the kernel on behalf of the relevant process.

The only thing I don't like about having the LDM ignore SIGCONT is
that this would mean that EXECed programs would be in a non-standard
execution environment.  If such a program received a SIGSTOP, for
whatever reason, it would never be able to restart and would have
to be abnormally terminated.

If the problem is primarily with the dcgrib2(1) decoder, then it
might suffice to make decoders their own process-group leaders.
This can easily be done by replacing the "setpgid(0, getppid())"
with a "setpgid(0, 0)".

Regards,
Steve Emmerson

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


 
 
  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