diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-11-17 19:37:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-11-17 19:37:47 +0000 |
commit | 7c55e4e549629fce84a903065ccc2a80c9438df1 (patch) | |
tree | 3023589abf445990085d39dcae8162b9dfbfc5b3 | |
parent | 7421e82f39caa061ced3636a46b4d75829c36475 (diff) |
errno saving
-rw-r--r-- | usr.bin/make/job.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index a5b4f392d77..36a64c54ea0 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -1,5 +1,5 @@ /* $OpenPackages$ */ -/* $OpenBSD: job.c,v 1.46 2001/11/11 12:35:02 espie Exp $ */ +/* $OpenBSD: job.c,v 1.47 2001/11/17 19:37:46 deraadt Exp $ */ /* $NetBSD: job.c,v 1.16 1996/11/06 17:59:08 christos Exp $ */ /* @@ -375,6 +375,7 @@ static void JobPassSig(signo) int signo; /* The signal number we've received */ { + int save_errno = errno; sigset_t nmask, omask; struct sigaction act; @@ -434,6 +435,7 @@ JobPassSig(signo) sigprocmask(SIG_SETMASK, &omask, NULL); act.sa_handler = JobPassSig; sigaction(signo, &act, NULL); + errno = save_errno; } /*- |