[torquedev] [Bug 123] New: Restore default SIGPIPE handler in children

bugzilla-daemon at supercluster.org bugzilla-daemon at supercluster.org
Wed Apr 20 11:35:10 MDT 2011


http://www.clusterresources.com/bugzilla/show_bug.cgi?id=123

           Summary: Restore default SIGPIPE handler in children
           Product: TORQUE
           Version: 2.4.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: pbs_mom
        AssignedTo: knielson at adaptivecomputing.com
        ReportedBy: aripollak at gmail.com
                CC: torquedev at supercluster.org
   Estimated Hours: 0.0


It seems that jobs running under pbs_mom have the SIGPIPE handler ignored,
which can cause "broken pipe" errors from a simple "zcat test.gz | head", where
that wouldn't cause any errors under normal circumstances. 

It looks like this is caused by the following line in mom_main.c, which is
presumably still needed:

  sigaction(SIGPIPE, &act, NULL);                                  

So can the default signal handler (SIG_DFL) for SIGPIPE be restored in the
subprocess that spawns the job? It's not possible to do this from within shell,
though it is possible to do it from Python and other scripting languages.

-- 
Configure bugmail: http://www.clusterresources.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the torquedev mailing list