diff options
author | Brad King <brad.king@kitware.com> | 2010-06-11 14:15:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-06-11 14:15:19 (GMT) |
commit | 60478de3e5032a0db59f27e913fef222fe767518 (patch) | |
tree | 833069e9079e233b7bf08066cb73ef295c2498bf /Source/kwsys/ProcessUNIX.c | |
parent | 6ce85691eb0a56ea1a9ae3858ff0e18a86a7c377 (diff) | |
download | CMake-60478de3e5032a0db59f27e913fef222fe767518.zip CMake-60478de3e5032a0db59f27e913fef222fe767518.tar.gz CMake-60478de3e5032a0db59f27e913fef222fe767518.tar.bz2 |
KWSys: Process tree kill for Solaris
Diffstat (limited to 'Source/kwsys/ProcessUNIX.c')
-rw-r--r-- | Source/kwsys/ProcessUNIX.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c index 9cb787a..adadef1 100644 --- a/Source/kwsys/ProcessUNIX.c +++ b/Source/kwsys/ProcessUNIX.c @@ -2377,6 +2377,9 @@ static pid_t kwsysProcessFork(kwsysProcess* cp, || defined(__OpenBSD__) || defined(__GLIBC__) || defined(__GNU__) # define KWSYSPE_PS_COMMAND "ps axo pid,ppid" # define KWSYSPE_PS_FORMAT "%d %d\n" +#elif defined(__sun) && (defined(__SVR4) || defined(__svr4__)) /* Solaris */ +# define KWSYSPE_PS_COMMAND "ps -e -o pid,ppid" +# define KWSYSPE_PS_FORMAT "%d %d\n" #elif defined(__hpux) || defined(__sun__) || defined(__sgi) || defined(_AIX) \ || defined(__sparc) # define KWSYSPE_PS_COMMAND "ps -ef" |