KWSys: Process tree kill for Solaris
This commit is contained in:
parent
6ce85691eb
commit
60478de3e5
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue