summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gettext-tools/lib/ChangeLog4
-rw-r--r--gettext-tools/lib/wait-process.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog
index efa3982..19fb0ba 100644
--- a/gettext-tools/lib/ChangeLog
+++ b/gettext-tools/lib/ChangeLog
@@ -1,5 +1,9 @@
2003-10-21 Bruno Haible <bruno@clisp.org>
+ * wait-process.c (kill): Define appropriately for native Woe32 API.
+
+2003-10-21 Bruno Haible <bruno@clisp.org>
+
* mkdtemp.c (mkdir): Redefine on mingw.
2003-10-17 Bruno Haible <bruno@clisp.org>
diff --git a/gettext-tools/lib/wait-process.c b/gettext-tools/lib/wait-process.c
index 138f25c..42a6763 100644
--- a/gettext-tools/lib/wait-process.c
+++ b/gettext-tools/lib/wait-process.c
@@ -101,6 +101,18 @@
#define SIZEOF(a) (sizeof(a) / sizeof(a[0]))
+#if defined _MSC_VER || defined __MINGW32__
+
+/* The return value of spawnvp() is really a process handle as returned
+ by CreateProcess(). Therefore we can kill it using TerminateProcess. */
+#define kill(pid,sig) TerminateProcess ((HANDLE) (pid), sig)
+
+#endif
+
+
+void
+register_slave_subprocess (pid_t child)
+
/* Type of an entry in the slaves array.
The 'used' bit determines whether this entry is currently in use.
(If pid_t was an atomic type like sig_atomic_t, we could just set the