summary refs log tree commit diff
path: root/src/trap.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-02-22 18:16:13 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2009-02-22 18:16:13 +0800
commited25e9f97e007f684146f729bb5cdeaf91b668b6 (patch)
tree60258db17efbd43ac0639f4310097ab8fee63eeb /src/trap.c
parent[JOBS] Fix dowait signal race (diff)
downloaddash-ed25e9f97e007f684146f729bb5cdeaf91b668b6.tar.gz
dash-ed25e9f97e007f684146f729bb5cdeaf91b668b6.zip
[SIGNAL] Remove EXSIG
Now that waitcmd no longer uses EXSIG we can remove it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--src/trap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/trap.c b/src/trap.c
index 53663ae..5b8b046 100644
--- a/src/trap.c
+++ b/src/trap.c
@@ -73,11 +73,9 @@ char *trap[NSIG];
 /* current value of signal */
 char sigmode[NSIG - 1];
 /* indicates specified signal received */
-char gotsig[NSIG - 1];
+static char gotsig[NSIG - 1];
 /* last pending signal */
 volatile sig_atomic_t pendingsigs;
-/* do we generate EXSIG events */
-int exsig;
 
 extern char *signal_names[];
 
@@ -278,7 +276,7 @@ onsig(int signo)
 	gotsig[signo - 1] = 1;
 	pendingsigs = signo;
 
-	if (exsig || (signo == SIGINT && !trap[SIGINT])) {
+	if (signo == SIGINT && !trap[SIGINT]) {
 		if (!suppressint)
 			onint();
 		intpending = 1;