diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-01-02 12:18:50 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-01-02 12:18:50 +0000 |
commit | b88ff80f703931b368d27ebd898accdae5b31e60 (patch) | |
tree | 79aa8e4d9b249e165973423a04fb3b4889308aa3 /libc/signal/raise.c | |
parent | cac4a2ef934d7ac5314c874b88b62e922fc70690 (diff) |
Once again, rework the signal handling to be even more correct. We no
longer segfault when running test/signal/sigchld.c, which exposed a bit
of a rats nest. The problem ended up being a erroneous syscall
defination, but in the process of finding that out, I scrubbed things
up nicely and adapted things to use the rt_ signals if they are
available. This now passes all the signal tests.
-Erik
Diffstat (limited to 'libc/signal/raise.c')
-rw-r--r-- | libc/signal/raise.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/signal/raise.c b/libc/signal/raise.c index b666789b4..d4137aeb8 100644 --- a/libc/signal/raise.c +++ b/libc/signal/raise.c @@ -7,9 +7,8 @@ #include <signal.h> #include <sys/types.h> -int raise(signo) -int signo; +int raise(int signo) { - return kill(getpid(), signo); + return kill(getpid(), signo); } |