[Cmake-commits] CMake branch, master, updated. 1560d9dcca7312def996022b4702dc739ba2badb

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Mar 18 08:50:05 EDT 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
       via  1560d9dcca7312def996022b4702dc739ba2badb (commit)
      from  f1d801e4ea2c6996a0f391f382569c552169ae6a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1560d9dcca7312def996022b4702dc739ba2badb
commit 1560d9dcca7312def996022b4702dc739ba2badb
Author: Brad King <brad.king at kitware.com>
Date:   Thu Mar 18 08:43:05 2010 -0400

    KWSys: Enable process tree killing on kFreeBSD
    
    Teach kwsysProcessKill to identify processes on this platform using the "ps"
    command just as on Linux.  Patch from Modestas Vainius <modax at debian.org>.
    See issue #10432.

diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c
index 373e906..57f7b16 100644
--- a/Source/kwsys/ProcessUNIX.c
+++ b/Source/kwsys/ProcessUNIX.c
@@ -2373,7 +2373,8 @@ static pid_t kwsysProcessFork(kwsysProcess* cp,
    Here we define the command to call on each platform and the
    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__)
+#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) \
+   || defined(__FreeBSD_kernel__)
 # define KWSYSPE_PS_COMMAND "ps axo pid,ppid"
 # define KWSYSPE_PS_FORMAT  "%d %d\n"
 #elif defined(__hpux) || defined(__sun__) || defined(__sgi) || defined(_AIX) \

-----------------------------------------------------------------------

Summary of changes:
 Source/kwsys/ProcessUNIX.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list