summaryrefslogtreecommitdiff
path: root/src/signal
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-03-01 21:21:58 -0500
committerJakob Kaivo <jkk@ung.org>2019-03-01 21:21:58 -0500
commitc8d00441fb11a617e462339309fab7c6f78353a4 (patch)
tree755e51d6b27d82007cbc57e7e65d1f9a34e589c3 /src/signal
parent19f7605e4abf54ad158a324bcb8abe57a1dfeb5c (diff)
set signals to match requirements for kill and trap commands, adjust others accordingly
Diffstat (limited to 'src/signal')
-rw-r--r--src/signal/SIGABRT.c3
-rw-r--r--src/signal/SIGALRM.c3
-rw-r--r--src/signal/SIGFPE.c2
-rw-r--r--src/signal/SIGHUP.c5
-rw-r--r--src/signal/SIGILL.c2
-rw-r--r--src/signal/SIGINT.c3
-rw-r--r--src/signal/SIGKILL.c1
-rw-r--r--src/signal/SIGQUIT.c3
-rw-r--r--src/signal/SIGSEGV.c2
-rw-r--r--src/signal/SIGTERM.c3
10 files changed, 17 insertions, 10 deletions
diff --git a/src/signal/SIGABRT.c b/src/signal/SIGABRT.c
index f1878ecf..ce42a249 100644
--- a/src/signal/SIGABRT.c
+++ b/src/signal/SIGABRT.c
@@ -1,10 +1,11 @@
#include <signal.h>
-#define SIGABRT (1)
+#define SIGABRT (6)
/** abnormal termination **/
/***
is a signal indicating that the program is being terminated abnormally,
such as when FUNCTION(abort) is called.
***/
+/* Value selected to match requirements for COMMAND(kill) and COMMAND(trap). */
/*
STDC(1)
*/
diff --git a/src/signal/SIGALRM.c b/src/signal/SIGALRM.c
index 10f61118..63a337fa 100644
--- a/src/signal/SIGALRM.c
+++ b/src/signal/SIGALRM.c
@@ -1,6 +1,7 @@
#include <signal.h>
-#define SIGALRM (11)
+#define SIGALRM (14)
/*s Alarm s*/
+/* Value selected to match requirements for COMMAND(kill) and COMMAND(trap). */
/*
POSIX(1)
*/
diff --git a/src/signal/SIGFPE.c b/src/signal/SIGFPE.c
index c61c78fe..995a21c2 100644
--- a/src/signal/SIGFPE.c
+++ b/src/signal/SIGFPE.c
@@ -1,5 +1,5 @@
#include <signal.h>
-#define SIGFPE (2)
+#define SIGFPE (4)
/** floating point exception **/
/***
is a signal that indicates an error resulting from invalid arithmetic
diff --git a/src/signal/SIGHUP.c b/src/signal/SIGHUP.c
index 8433a252..d2613613 100644
--- a/src/signal/SIGHUP.c
+++ b/src/signal/SIGHUP.c
@@ -1,6 +1,7 @@
#include <signal.h>
-#define SIGHUP (15)
-/*s Hang-up s*/
+#define SIGHUP (0)
+/** Hang-up **/
+/* Value selected to match requirements for COMMAND(kill) and COMMAND(trap). */
/*
POSIX(1)
*/
diff --git a/src/signal/SIGILL.c b/src/signal/SIGILL.c
index 1d6c588f..bd6afce8 100644
--- a/src/signal/SIGILL.c
+++ b/src/signal/SIGILL.c
@@ -1,5 +1,5 @@
#include <signal.h>
-#define SIGILL (3)
+#define SIGILL (5)
/** illegal instruction **/
/***
is a signal indicating that the program has attempted to execute an illegal
diff --git a/src/signal/SIGINT.c b/src/signal/SIGINT.c
index 32169d73..d335bbe2 100644
--- a/src/signal/SIGINT.c
+++ b/src/signal/SIGINT.c
@@ -1,9 +1,10 @@
#include <signal.h>
-#define SIGINT (4)
+#define SIGINT (2)
/** interrupt **/
/***
is a signal that indicates the program is being interactively interrupted.
***/
+/* Value selected to match requirements for COMMAND(kill) and COMMAND(trap). */
/*
STDC(1)
*/
diff --git a/src/signal/SIGKILL.c b/src/signal/SIGKILL.c
index 65f58cce..5ee04b92 100644
--- a/src/signal/SIGKILL.c
+++ b/src/signal/SIGKILL.c
@@ -1,6 +1,7 @@
#include <signal.h>
#define SIGKILL (9)
/*s Kill s*/
+/* Value selected to match requirements for COMMAND(kill) and COMMAND(trap). */
/*
POSIX(1)
*/
diff --git a/src/signal/SIGQUIT.c b/src/signal/SIGQUIT.c
index 829cf4c6..303f57c2 100644
--- a/src/signal/SIGQUIT.c
+++ b/src/signal/SIGQUIT.c
@@ -1,6 +1,7 @@
#include <signal.h>
-#define SIGQUIT (17)
+#define SIGQUIT (3)
/*s Quit s*/
+/* Value selected to match requirements for COMMAND(kill) and COMMAND(trap). */
/*
POSIX(1)
*/
diff --git a/src/signal/SIGSEGV.c b/src/signal/SIGSEGV.c
index 5d6da2b4..cfda42c2 100644
--- a/src/signal/SIGSEGV.c
+++ b/src/signal/SIGSEGV.c
@@ -1,5 +1,5 @@
#include <signal.h>
-#define SIGSEGV (5)
+#define SIGSEGV (7)
/** segmentation fault **/
/***
is a signal that indicates the program is attempting to access an invalid
diff --git a/src/signal/SIGTERM.c b/src/signal/SIGTERM.c
index 990c0730..72dfa7ae 100644
--- a/src/signal/SIGTERM.c
+++ b/src/signal/SIGTERM.c
@@ -1,9 +1,10 @@
#include <signal.h>
-#define SIGTERM (6)
+#define SIGTERM (15)
/** terminate **/
/***
is a signal indicating that the system is requesting the program to terminate.
***/
+/* Value selected to match requirements for COMMAND(kill) and COMMAND(trap). */
/*
STDC(1)
*/