summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-16 10:14:18 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-16 10:14:18 +0000
commit059d08144033cf509b6b2aea56ae750980b399ba (patch)
tree27f37e7b25dd7f03384f55f50456cbdcb157f213
parentcfcf2c267b2dbb1a7fbbfdd82610330b45ead734 (diff)
Symbol cleanup/bugfix. Add in needed global.
-rw-r--r--libc/signal/bsd_sig.c2
-rw-r--r--libc/signal/signal.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/libc/signal/bsd_sig.c b/libc/signal/bsd_sig.c
index 509de87cb..405447eae 100644
--- a/libc/signal/bsd_sig.c
+++ b/libc/signal/bsd_sig.c
@@ -29,6 +29,6 @@ __bsd_signal (int sig, __sighandler_t handler)
action.sa_flags = 0;
#endif
}
- ret = __sigaction (sig, &action, &oaction);
+ ret = sigaction (sig, &action, &oaction);
return (ret == -1) ? SIG_ERR : oaction.sa_handler;
}
diff --git a/libc/signal/signal.c b/libc/signal/signal.c
index 62af55f38..2397c55e7 100644
--- a/libc/signal/signal.c
+++ b/libc/signal/signal.c
@@ -1,6 +1,9 @@
#include <string.h>
#include <signal.h>
+/* Global variable */
+sigset_t _sigintr; /* Set by siginterrupt. */
+
__sighandler_t
__signal (int sig, __sighandler_t handler, int flags)
{