diff options
author | 1998-06-26 21:29:13 +0000 | |
---|---|---|
committer | 1998-06-26 21:29:13 +0000 | |
commit | 995e0300d9c6f5580f9220c4c2b8524cba689c8e (patch) | |
tree | 81272f0a8d2ad946a5c87e1eefd2eead79edacad | |
parent | rdist 6.1.4 + OpenBSD patches + some -Wall (diff) | |
download | wireguard-openbsd-995e0300d9c6f5580f9220c4c2b8524cba689c8e.tar.xz wireguard-openbsd-995e0300d9c6f5580f9220c4c2b8524cba689c8e.zip |
save_errno
-rw-r--r-- | usr.bin/rdist/common.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/rdist/common.c b/usr.bin/rdist/common.c index 0e753d75869..1fef1396a4e 100644 --- a/usr.bin/rdist/common.c +++ b/usr.bin/rdist/common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: common.c,v 1.6 1998/06/26 21:21:01 millert Exp $ */ +/* $OpenBSD: common.c,v 1.7 1998/06/26 21:29:13 millert Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -39,7 +39,7 @@ static char RCSid[] = "$From: common.c,v 6.82 1998/03/23 23:27:33 michaelc Exp $"; #else static char RCSid[] = -"$OpenBSD: common.c,v 1.6 1998/06/26 21:21:01 millert Exp $"; +"$OpenBSD: common.c,v 1.7 1998/06/26 21:29:13 millert Exp $"; #endif static char sccsid[] = "@(#)common.c"; @@ -249,6 +249,8 @@ extern void coredump() extern void sighandler(sig) int sig; { + int save_errno = errno; + debugmsg(DM_CALL, "sighandler() received signal %d\n", sig); switch (sig) { @@ -281,6 +283,7 @@ extern void sighandler(sig) default: fatalerr("No signal handler defined for signal %d.", sig); } + errno = save_errno; } /* |