Browse Source

save errno in signal handler

OPENBSD_3_1
deraadt 23 years ago
parent
commit
a3de80a1d8
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/lib/libutil/passwd.c

+ 4
- 2
src/lib/libutil/passwd.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: passwd.c,v 1.28 2001/08/26 03:28:30 millert Exp $ */
/* $OpenBSD: passwd.c,v 1.29 2001/11/14 19:50:23 deraadt Exp $ */
/*
* Copyright (c) 1987, 1993, 1994, 1995
@ -34,7 +34,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] = "$OpenBSD: passwd.c,v 1.28 2001/08/26 03:28:30 millert Exp $";
static char rcsid[] = "$OpenBSD: passwd.c,v 1.29 2001/11/14 19:50:23 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@ -336,9 +336,11 @@ static void
pw_cont(sig)
int sig;
{
int save_errno = errno;
if (editpid != -1)
kill(editpid, sig);
errno = save_errno;
}
void


Loading…
Cancel
Save