diff options
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r-- | usr.bin/script/script.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index d24277c2868..3fb03143b68 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -1,4 +1,4 @@ -/* $OpenBSD: script.c,v 1.8 1997/08/04 19:25:56 deraadt Exp $ */ +/* $OpenBSD: script.c,v 1.9 1997/08/06 06:43:43 deraadt Exp $ */ /* $NetBSD: script.c,v 1.3 1994/12/21 08:55:43 jtc Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: script.c,v 1.8 1997/08/04 19:25:56 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: script.c,v 1.9 1997/08/06 06:43:43 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -201,10 +201,13 @@ void scriptflush(signo) int signo; { + int save_errno = errno; + if (outcc) { (void)fflush(fscript); outcc = 0; } + errno = save_errno; } void |