Skip to content
Snippets Groups Projects
Commit e7906212 authored by Brad King's avatar Brad King
Browse files

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@debian.org>.
See issue #10432.
parent 0d3fdf45
No related branches found
No related tags found
No related merge requests found
......@@ -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) \
......
......@@ -15,7 +15,7 @@
SET(KWSYS_DATE_STAMP_YEAR 2010)
# KWSys version date month component. Format is MM.
SET(KWSYS_DATE_STAMP_MONTH 02)
SET(KWSYS_DATE_STAMP_MONTH 03)
# KWSys version date day component. Format is DD.
SET(KWSYS_DATE_STAMP_DAY 12)
SET(KWSYS_DATE_STAMP_DAY 18)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment