summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/commands.c b/commands.c
index 97ec981..813610c 100644
--- a/commands.c
+++ b/commands.c
@@ -481,10 +481,15 @@ fatal_error_signal (int sig)
exit (EXIT_FAILURE);
#endif
+#ifdef WINDOWS32
+ /* Cannot call W32_kill with a pid (it needs a handle) */
+ exit (EXIT_FAILURE);
+#else
/* Signal the same code; this time it will really be fatal. The signal
will be unblocked when we return and arrive then to kill us. */
if (kill (getpid (), sig) < 0)
pfatal_with_name ("kill");
+#endif /* not WINDOWS32 */
#endif /* not Amiga */
#endif /* not __MSDOS__ */
}