summaryrefslogtreecommitdiffstats
path: root/Process.h.in
diff options
context:
space:
mode:
authorKWSys Upstream <kwrobot@kitware.com>2017-11-02 13:44:34 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-02 13:48:53 (GMT)
commit5464e23ff5e822b8a99a3cd234c54ff4632ccb98 (patch)
tree984582ddfd3df190788b79b9d97f3595b672734f /Process.h.in
parent7d3f33e6129232a6814af47a19a72fd500414508 (diff)
downloadCMake-5464e23ff5e822b8a99a3cd234c54ff4632ccb98.zip
CMake-5464e23ff5e822b8a99a3cd234c54ff4632ccb98.tar.gz
CMake-5464e23ff5e822b8a99a3cd234c54ff4632ccb98.tar.bz2
KWSys 2017-11-02 (54f0901a)
Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 54f0901ad1a1c545a1360a19b5c521857b5a66ec (master). Upstream Shortlog ----------------- Bryon Bean (1): 8e428c18 Process: Add function to kill process (and children) with pid
Diffstat (limited to 'Process.h.in')
-rw-r--r--Process.h.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/Process.h.in b/Process.h.in
index 237001c..6cb9443 100644
--- a/Process.h.in
+++ b/Process.h.in
@@ -77,6 +77,7 @@
#define kwsysProcess_WaitForExit kwsys_ns(Process_WaitForExit)
#define kwsysProcess_Interrupt kwsys_ns(Process_Interrupt)
#define kwsysProcess_Kill kwsys_ns(Process_Kill)
+#define kwsysProcess_KillPID kwsys_ns(Process_KillPID)
#define kwsysProcess_ResetStartTime kwsys_ns(Process_ResetStartTime)
#endif
@@ -457,6 +458,13 @@ kwsysEXPORT void kwsysProcess_Interrupt(kwsysProcess* cp);
kwsysEXPORT void kwsysProcess_Kill(kwsysProcess* cp);
/**
+ * Same as kwsysProcess_Kill using process ID to locate process to
+ * terminate.
+ * @see kwsysProcess_Kill(kwsysProcess* cp)
+ */
+kwsysEXPORT void kwsysProcess_KillPID(unsigned long);
+
+/**
* Reset the start time of the child process to the current time.
*/
kwsysEXPORT void kwsysProcess_ResetStartTime(kwsysProcess* cp);