summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/ProcessUNIX.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2022-11-061-0/+13
| | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2022-11-06 (9aebb97f)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2022-06-031-0/+4
| | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2022-06-03 (c28e27bc)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2022-02-181-1/+1
| | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2022-02-18 (599dc923)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2022-01-291-0/+6
| | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2022-01-29 (389a74dc)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2021-10-271-2/+3
| | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2021-10-27 (e19a5668)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2021-05-071-4/+4
| | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2021-05-07 (979d7db0)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2021-04-291-0/+4
| | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2021-04-29 (5655d533)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2020-07-241-3/+3
| | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2020-07-24 (c3054d90)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2020-04-151-8/+10
| | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2020-04-15 (5ada375f)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2020-04-101-96/+101
| | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2020-04-10 (b62956f5)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2020-03-041-5/+7
| | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2020-03-04 (6af2e592)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2019-01-141-1/+1
| | | | | * upstream-KWSys: KWSys 2019-01-14 (1541d849)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2018-06-011-41/+41
| | | | | * upstream-KWSys: KWSys 2018-06-01 (8ef62b28)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2018-01-241-1/+1
| | | | | * upstream-KWSys: KWSys 2018-01-23 (0579db1c)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2017-11-021-0/+5
| | | | | * upstream-KWSys: KWSys 2017-11-02 (54f0901a)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2017-10-131-0/+8
| | | | | * upstream-KWSys: KWSys 2017-10-12 (ef0ad34d)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2017-10-101-13/+7
| | | | | * upstream-KWSys: KWSys 2017-10-10 (239bc737)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2017-08-111-1/+2
| | | | | * upstream-KWSys: KWSys 2017-08-11 (e1006189)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2017-05-161-108/+125
| | | | | * upstream-KWSys: KWSys 2017-05-16 (fe1f22ce)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2016-11-091-1127/+951
| | | | | * upstream-KWSys: KWSys 2016-11-09 (18c65411)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2016-03-091-0/+11
| | | | | * upstream-KWSys: KWSys 2016-03-09 (36d8666f)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2016-02-221-0/+2
| | | | | * upstream-KWSys: KWSys 2016-02-22 (4847aedd)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2016-01-111-2/+2
| | | | | * upstream-KWSys: KWSys 2016-01-11 (e8bf616e)
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2015-12-011-1/+1
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2015-07-311-50/+307
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2015-05-071-2/+7
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2015-05-051-162/+193
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2015-01-101-2/+2
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2014-08-111-0/+2
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2014-05-191-0/+6
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2013-12-191-1/+1
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2013-03-221-0/+6
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2013-02-011-1/+1
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2013-01-141-2/+3
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2013-01-081-4/+0
|
* Merge branch 'upstream-kwsys' into import-KWSys-subtreeBrad King2012-10-311-0/+1
|
* KWSys: Teach Process to error on empty commandBrad King2010-06-111-0/+8
| | | | | Do not try to execute a child with no command line. Previously this led to a silent hang.
* KWSys: Process tree kill for SolarisBrad King2010-06-111-0/+3
|
* KWSys: Process tree kill for kFreeBSD, GNU/HurdBrad King2010-05-111-1/+1
| | | | | | | | | 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.
* KWSys Process: Add OpenBSD process tree kill supportBrad King2010-04-191-1/+1
| | | | Patch from Chuck Atkins <chuck.atkins@kitware.com>
* KWSys: Enable process tree killing on kFreeBSDBrad King2010-03-181-1/+2
| | | | | | 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.
* Trust umask for file permissionsBrad King2010-01-121-3/+2
| | | | | Open output files with mode 0666 so that permissions are not more strict than umask permits. See issue #10126.
* KWSys: List processes with "ps -ef" on OpenSolarisBrad King2009-12-011-1/+2
| | | | | | | | | 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
* KWSys: Use "ps -Af" for process list on QNXBrad King2009-12-011-0/+3
| | | | | | | | | 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
* KWSys: Restore SIGSTOP/SIGKILL to end process treeBrad King2009-11-301-7/+15
| | | | | | | | | | | | | | | 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.
* fix two more icpc warnings, ok by Brad (float compared for equality, unused ↵Alexander Neundorf2009-10-191-2/+2
| | | | | | variable) Alex
* Convert KWSys to OSI-approved BSD LicenseBrad King2009-09-281-11/+9
| | | | | | | 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.
* ENH: Provide unix-sytle command line parsingBrad King2009-07-131-256/+3
| | | | | | | 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.
* COMP: Do not compile VMS-specific code on non-VMSBrad King2009-06-121-8/+7
| | | | | This helps avoid fixing VMS-specific code for non-VMS compilers where it isn't needed anyway.
* COMP:Fixed warning with gcc 4.3.3: passing argument 1 of ↵Francois Bertel2009-06-121-3/+3
| | | | kwsysProcessSetVMSFeature discards qualifiers from pointer target type.