diff options
Diffstat (limited to 'regress/lib/libpthread/signal/signal.c')
-rw-r--r-- | regress/lib/libpthread/signal/signal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/regress/lib/libpthread/signal/signal.c b/regress/lib/libpthread/signal/signal.c index 4955dd86f83..2d79cf2e08a 100644 --- a/regress/lib/libpthread/signal/signal.c +++ b/regress/lib/libpthread/signal/signal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: signal.c,v 1.2 2001/11/03 04:33:48 marc Exp $ */ +/* $OpenBSD: signal.c,v 1.3 2001/11/11 23:26:35 deraadt Exp $ */ /* David Leonard <d@openbsd.org>, 2001. Public Domain. */ /* @@ -31,9 +31,12 @@ void handler(sig) int sig; { + int save_errno = errno; + alarmed = 1; alarm(1); signal(SIGALRM, handler); + errno = save_errno; } int |