aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-04-03 08:28:41 +0100
committerRon Yorston <rmy@pobox.com>2023-04-03 08:31:56 +0100
commit1b2ee3667543b2588446dba6655720eb929bfe03 (patch)
tree6a6b13a678661fa8d193b89ca360024cfc0879b9 /include
parentef02a404777a782757a65234e037a24c64ac7c96 (diff)
downloadbusybox-w32-1b2ee3667543b2588446dba6655720eb929bfe03.tar.gz
busybox-w32-1b2ee3667543b2588446dba6655720eb929bfe03.tar.bz2
busybox-w32-1b2ee3667543b2588446dba6655720eb929bfe03.zip
win32: add fake HUP and QUIT signals
It's fairly common for shell scripts to trap this set of signals: EXIT HUP INT QUIT TERM (or the numeric equivalent: 0 1 2 3 15) Add definitions for SIGHUP and SIGQUIT. We don't take any action if traps are defined for them, but at least scripts won't fail. (GitHub issue #303)
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index a94d90767..8dd905c23 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -112,6 +112,8 @@ IMPL(getpwent,struct passwd *,NULL,void)
112/* 112/*
113 * signal.h 113 * signal.h
114 */ 114 */
115#define SIGHUP 1
116#define SIGQUIT 3
115#define SIGKILL 9 117#define SIGKILL 9
116#define SIGPIPE 13 118#define SIGPIPE 13
117 119