summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/ProcessUNIX.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-06-11 14:15:19 (GMT)
committerBrad King <brad.king@kitware.com>2010-06-11 14:15:19 (GMT)
commit60478de3e5032a0db59f27e913fef222fe767518 (patch)
tree833069e9079e233b7bf08066cb73ef295c2498bf /Source/kwsys/ProcessUNIX.c
parent6ce85691eb0a56ea1a9ae3858ff0e18a86a7c377 (diff)
downloadCMake-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.c3
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"