summaryrefslogtreecommitdiffstats
path: root/bin/csh/csh.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-08-05 22:22:51 +0000
committerderaadt <deraadt@openbsd.org>1997-08-05 22:22:51 +0000
commita3dc4760b02eb237db775d878477c16feec2a349 (patch)
tree91f518811550e26c70c62e0bf18e4e3e8c1d0a11 /bin/csh/csh.c
parentFixes for a variety of pdksh problems: (diff)
downloadwireguard-openbsd-a3dc4760b02eb237db775d878477c16feec2a349.tar.xz
wireguard-openbsd-a3dc4760b02eb237db775d878477c16feec2a349.zip
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