diff options
author | Brad King <brad.king@kitware.com> | 2010-05-11 17:34:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-05-11 17:34:54 (GMT) |
commit | 83d3b1e427f1ef7aba08731cb2f1442b399f8803 (patch) | |
tree | a19d48e3af62be31aa8b312d65e07921c956ec3f /Source | |
parent | 667b1b223f23dd1337c68fd87c3838fea0eb8aed (diff) | |
download | CMake-83d3b1e427f1ef7aba08731cb2f1442b399f8803.zip CMake-83d3b1e427f1ef7aba08731cb2f1442b399f8803.tar.gz CMake-83d3b1e427f1ef7aba08731cb2f1442b399f8803.tar.bz2 |
KWSys: Process tree kill for kFreeBSD, GNU/Hurd
kFreeBSD and Hurd have the same userland as Linux. This change is
necessary to enable kwsysProcessKill() to kill child processes on
kFreeBSD. The bug was detected by CTestTestTimeout test.
Patch from "Modestas Vainius <modestas@vainius.eu>".
See issue #10432.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/ProcessUNIX.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c index b368901..9cb787a 100644 --- a/Source/kwsys/ProcessUNIX.c +++ b/Source/kwsys/ProcessUNIX.c @@ -2374,7 +2374,7 @@ static pid_t kwsysProcessFork(kwsysProcess* cp, corresponding parsing format string. The parsing format should have two integers to store: the pid and then the ppid. */ #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) \ - || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) + || defined(__OpenBSD__) || defined(__GLIBC__) || defined(__GNU__) # define KWSYSPE_PS_COMMAND "ps axo pid,ppid" # define KWSYSPE_PS_FORMAT "%d %d\n" #elif defined(__hpux) || defined(__sun__) || defined(__sgi) || defined(_AIX) \ |