diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-17 19:22:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-17 19:22:30 +0000 |
commit | d7a6a24f20a97b1ea77b0ede97ceefc63c36c966 (patch) | |
tree | a715d45e7c662f25afefdbfbc82e2dd9b93c26d6 /sbin/fsck_ffs/utilities.c | |
parent | f038b584388d8e2e32a74af3f4fda8b6c386e355 (diff) |
solve half of the signal race issues
Diffstat (limited to 'sbin/fsck_ffs/utilities.c')
-rw-r--r-- | sbin/fsck_ffs/utilities.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/fsck_ffs/utilities.c b/sbin/fsck_ffs/utilities.c index dc3fd9acb91..1cf21a98a53 100644 --- a/sbin/fsck_ffs/utilities.c +++ b/sbin/fsck_ffs/utilities.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utilities.c,v 1.28 2006/04/17 19:18:09 deraadt Exp $ */ +/* $OpenBSD: utilities.c,v 1.29 2006/04/17 19:22:29 deraadt Exp $ */ /* $NetBSD: utilities.c,v 1.18 1996/09/27 22:45:20 christos Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)utilities.c 8.1 (Berkeley) 6/5/93"; #else -static const char rcsid[] = "$OpenBSD: utilities.c,v 1.28 2006/04/17 19:18:09 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: utilities.c,v 1.29 2006/04/17 19:22:29 deraadt Exp $"; #endif #endif /* not lint */ @@ -478,10 +478,9 @@ getpathname(char *namebuf, size_t namebuflen, ino_t curdir, ino_t ino) void catch(int n) { - /* XXX signal race */ if (!doinglevel2) - ckfini(0); - exit(12); + ckfini(0); /* XXX signal race */ + _exit(12); } /* |