summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-06-26 21:29:14 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-06-26 21:29:14 +0000
commitd87f4f85b64fe69afeab5dc18e01b9b42e6b1fc6 (patch)
tree78842529feefd31e5f87eef7eef9dd8c966d17c4
parente02f77d2a6a52f96b8f35599d9c13a1e62817b9b (diff)
save_errno
-rw-r--r--usr.bin/rdist/common.c7
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;
}
/*