Ticket #1578: sge-wait.patch

File sge-wait.patch, 1.2 KB (added by opoplawski, 3 years ago)

patch to make qtcsh use waitpid() on linux

  • sge-8.1.9/source/3rdparty/qtcsh/config/linux

    diff -up sge-8.1.9/source/3rdparty/qtcsh/config/linux.wait sge-8.1.9/source/3rdparty/qtcsh/config/linux
    old new  
    4242#define BSDJOBS
    4343
    4444/*
    45  * BSDTIMES     You have BSD-style process time stuff (like rusage)
    46  *              This may or may not be true.  For example, Apple Unix
    47  *              (OREO) has BSDJOBS but not BSDTIMES.
    48  */
    49 #define BSDTIMES
    50 
    51 /*
    5245 * BSDLIMIT     You have BSD-style resource limit stuff (getrlimit/setrlimit)
    5346 */
    5447#define BSDLIMIT
  • sge-8.1.9/source/3rdparty/qtcsh/sh.proc.c

    diff -up sge-8.1.9/source/3rdparty/qtcsh/sh.proc.c.wait sge-8.1.9/source/3rdparty/qtcsh/sh.proc.c
    old new RCSID("$tcsh: sh.proc.c,v 3.109 2009/06/ 
    4747# define HZ 16
    4848#endif /* aiws */
    4949
    50 #if defined(_BSD) || (defined(IRIS4D) && __STDC__) || defined(__lucid) || defined(linux) || defined(__GNU__) || defined(__GLIBC__)
     50#if defined(_BSD) || (defined(IRIS4D) && __STDC__) || defined(__lucid)
    5151# define BSDWAIT
    5252#endif /* _BSD || (IRIS4D && __STDC__) || __lucid || glibc */
    5353#ifndef WTERMSIG