diff options
Diffstat (limited to 'gettext-tools/lib/wait-process.c')
-rw-r--r-- | gettext-tools/lib/wait-process.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 |