From a63bff464b378362cad67f15e0d3f291f82375d6 Mon Sep 17 00:00:00 2001 From: eivind Date: Wed, 8 Oct 1997 12:59:14 +0000 Subject: make signal handlers errno safe Obtained from: OpenBSD (file rev 1.5) Theo de Raadt --- bin/dd/misc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/dd') diff --git a/bin/dd/misc.c b/bin/dd/misc.c index 394f593..2a8891b 100644 --- a/bin/dd/misc.c +++ b/bin/dd/misc.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: misc.c,v 1.7 1997/02/22 14:02:47 peter Exp $ */ #ifndef lint @@ -91,8 +91,10 @@ void summaryx(notused) int notused; { + int save_errno = errno; summary(); + errno = save_errno; } /* ARGSUSED */ -- cgit v1.1