summaryrefslogtreecommitdiff
path: root/bin/csh/csh.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-05 22:22:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-05 22:22:59 +0000
commit285618ff4bb8510cd68164d23f8de74d740d6ce8 (patch)
treeb25ee9328017698113c7c629edb3809718ac59e8 /bin/csh/csh.c
parent9788e3d94e7241f57b76257d410662d813dee9df (diff)
make signal handlers errno safe
Diffstat (limited to 'bin/csh/csh.c')
-rw-r--r--bin/csh/csh.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/csh/csh.c b/bin/csh/csh.c
index b971a1bef77..92c910d4c97 100644
--- a/bin/csh/csh.c
+++ b/bin/csh/csh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: csh.c,v 1.7 1997/07/25 18:57:59 mickey Exp $ */
+/* $OpenBSD: csh.c,v 1.8 1997/08/05 22:22:51 deraadt Exp $ */
/* $NetBSD: csh.c,v 1.14 1995/04/29 23:21:28 mycroft Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)csh.c 8.2 (Berkeley) 10/12/93";
#else
-static char rcsid[] = "$OpenBSD: csh.c,v 1.7 1997/07/25 18:57:59 mickey Exp $";
+static char rcsid[] = "$OpenBSD: csh.c,v 1.8 1997/08/05 22:22:51 deraadt Exp $";
#endif
#endif /* not lint */
@@ -930,7 +930,10 @@ void
pintr(notused)
int notused;
{
+ int save_errno = errno;
+
pintr1(1);
+ errno = save_errno;
}
void