Brad King
0d35f598d9
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2022-11-06 (9aebb97f)
2022-11-06 08:33:10 -05:00
Brad King
1869f82823
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2022-06-03 (c28e27bc)
2022-06-03 06:47:55 -04:00
Brad King
f634e77b2e
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2022-02-18 (599dc923)
2022-02-18 09:20:57 -05:00
Brad King
e83bb75160
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2022-01-29 (389a74dc)
2022-01-29 07:06:10 -05:00
Brad King
848eeba483
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2021-10-27 (e19a5668)
2021-10-27 11:21:46 -04:00
Brad King
ba87a84339
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2021-05-07 (979d7db0)
2021-05-07 09:26:05 -04:00
Brad King
11cadc3ef7
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2021-04-29 (5655d533)
2021-04-29 09:45:42 -04:00
Brad King
ead4adad75
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2020-07-24 (c3054d90)
2020-07-24 07:05:24 -04:00
Brad King
87a06afce3
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2020-04-15 (5ada375f)
2020-04-15 06:41:18 -04:00
Brad King
0b495b6ca9
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2020-04-10 (b62956f5)
2020-04-10 07:56:14 -04:00
Brad King
9e6b07f5ff
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2020-03-04 (6af2e592)
2020-03-04 08:00:24 -05:00
Brad King
0d88739736
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2019-01-14 (1541d849)
2019-01-14 07:38:40 -05:00
Brad King
81870f1159
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2018-06-01 (8ef62b28)
2018-06-01 12:54:13 -04:00
Brad King
f8e8946815
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2018-01-23 (0579db1c)
2018-01-24 14:11:07 -05:00
Brad King
3048777006
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2017-11-02 (54f0901a)
2017-11-02 09:48:53 -04:00
Brad King
df92617b73
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2017-10-12 (ef0ad34d)
2017-10-13 09:14:04 -04:00
Brad King
f1a4ecdc0c
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2017-10-10 (239bc737)
2017-10-10 08:43:41 -04:00
Brad King
060cef0c44
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2017-08-11 (e1006189)
2017-08-11 10:13:23 -04:00
Brad King
16ebd9f615
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2017-05-16 (fe1f22ce)
2017-05-16 11:39:01 -04:00
Brad King
95a97a40e4
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2016-11-09 (18c65411)
2016-11-09 09:23:18 -05:00
Brad King
fd466fe657
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2016-03-09 (36d8666f)
2016-03-09 09:10:55 -05:00
Brad King
d010ba9fa7
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2016-02-22 (4847aedd)
2016-02-22 09:03:40 -05:00
Brad King
9821924d45
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2016-01-11 (e8bf616e)
2016-01-11 11:20:14 -05:00
Brad King
fe05ad9752
Merge branch 'upstream-kwsys' into update-kwsys
2015-12-01 08:46:55 -05:00
Brad King
d0915bc86f
Merge branch 'upstream-kwsys' into update-kwsys
2015-07-31 09:26:35 -04:00
Brad King
31c218e6e1
Merge branch 'upstream-kwsys' into update-kwsys
2015-05-07 14:34:50 -04:00
Brad King
a874700fc2
Merge branch 'upstream-kwsys' into update-kwsys
2015-05-05 09:13:24 -04:00
Brad King
e5b9142097
Merge branch 'upstream-kwsys' into update-kwsys
2015-01-10 12:09:04 -05:00
Brad King
51c82c3a66
Merge branch 'upstream-kwsys' into update-kwsys
2014-08-11 09:30:22 -04:00
Brad King
2903d609b1
Merge branch 'upstream-kwsys' into update-kwsys
2014-05-19 10:58:14 -04:00
Brad King
2a943d9264
Merge branch 'upstream-kwsys' into update-kwsys
2013-12-19 10:44:29 -05:00
Brad King
3ed2d03ee9
Merge branch 'upstream-kwsys' into update-kwsys
2013-03-22 08:08:03 -04:00
Brad King
588d705cb1
Merge branch 'upstream-kwsys' into update-kwsys
2013-02-01 09:28:50 -05:00
Brad King
e2c756fcf0
Merge branch 'upstream-kwsys' into update-kwsys
2013-01-14 09:41:52 -05:00
Brad King
6f6afbd69f
Merge branch 'upstream-kwsys' into update-kwsys
2013-01-08 08:42:58 -05:00
Brad King
17fb60bb13
Merge branch 'upstream-kwsys' into import-KWSys-subtree
2012-10-31 16:44:00 -04:00
Brad King
b9e3c243d4
KWSys: Teach Process to error on empty command
...
Do not try to execute a child with no command line. Previously this led
to a silent hang.
2010-06-11 11:00:38 -04:00
Brad King
60478de3e5
KWSys: Process tree kill for Solaris
2010-06-11 10:15:19 -04:00
Brad King
83d3b1e427
KWSys: Process tree kill for kFreeBSD, GNU/Hurd
...
kFreeBSD and Hurd have the same userland as Linux. This change is
necessary to enable kwsysProcessKill() to kill child processes on
kFreeBSD. The bug was detected by CTestTestTimeout test.
Patch from "Modestas Vainius <modestas@vainius.eu >".
See issue #10432 .
2010-05-11 13:34:54 -04:00
Brad King
60de059bff
KWSys Process: Add OpenBSD process tree kill support
...
Patch from Chuck Atkins <chuck.atkins@kitware.com >
2010-04-19 16:30:37 -04:00
Brad King
1560d9dcca
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 .
2010-03-18 08:43:05 -04:00
Brad King
8d0161c8ff
Trust umask for file permissions
...
Open output files with mode 0666 so that permissions are not more strict
than umask permits. See issue #10126 .
2010-01-12 11:57:01 -05:00
Brad King
1a5f209e62
KWSys: List processes with "ps -ef" on OpenSolaris
...
In order to kill process trees we need to list all processes to find
those whose parent we are killing. We implement process listing on
OpenSolaris by using "ps -ef" and parsing the resulting format:
UID PID PPID C STIME TTY TIME CMD
%*s %d %d %*[^\n]\n
2009-12-01 08:37:14 -05:00
Brad King
be36c14bea
KWSys: Use "ps -Af" for process list on QNX
...
In order to kill process trees we need to list all processes to find
those whose parent we are killing. We implement process listing on QNX
using "ps -Af" and parsing the resulting format:
UID PID PPID C STIME TTY TIME CMD
%*d %d %d %*[^\n]\n
2009-12-01 08:10:22 -05:00
Brad King
b21f1eaeae
KWSys: Restore SIGSTOP/SIGKILL to end process tree
...
On UNIX systems we kill a tree of processes by performing a DFS walk of
the tree. We send SIGSTOP to each process encountered, recursively
handle its children, and then send SIGKILL.
We once used the above approach in the past, but it was removed by the
commit "Do not send both SIGSTOP and SIGKILL when killing a process".
The commit was meant to work-around an OS X 10.3 bug in which the child
would not always honor SIGKILL after SIGSTOP. At the time we wrongly
assumed that the process tree remains intact after SIGKILL and before
the child is reaped. In fact the grandchildren may be re-parented to
ppid=1 even before the child is reaped, which causes the DFS walk to
miss them.
2009-11-30 13:14:02 -05:00
Alexander Neundorf
5e2851f855
fix two more icpc warnings, ok by Brad (float compared for equality, unused variable)
...
Alex
2009-10-19 12:57:36 -04:00
Brad King
de955e4b6d
Convert KWSys to OSI-approved BSD License
...
This converts the KWSys license to a pure 3-clause OSI-approved BSD
License. We drop the previous license clause requiring modified
versions to be plainly marked. We also update the KWSys copyright to
cover the full development time range.
2009-09-28 11:37:35 -04:00
Brad King
18e639d48a
ENH: Provide unix-sytle command line parsing
...
Add System_Parse_CommandForUnix to the KWSys System interface as a
utility to parse a unix-style command line. Move the existing
implementation out of ProcessUNIX. Add a flags argument reserved for
future use in providing additional behavior.
2009-07-13 16:22:14 -04:00
Brad King
219626a2be
COMP: Do not compile VMS-specific code on non-VMS
...
This helps avoid fixing VMS-specific code for non-VMS compilers where it
isn't needed anyway.
2009-06-12 15:44:50 -04:00
Francois Bertel
17daa9398a
COMP:Fixed warning with gcc 4.3.3: passing argument 1 of kwsysProcessSetVMSFeature discards qualifiers from pointer target type.
2009-06-12 13:33:35 -04:00