artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fda99e8
)
Close FILEs when fork fails.
author
ray
<ray@openbsd.org>
Fri, 16 Jul 2010 21:47:02 +0000
(21:47 +0000)
committer
ray
<ray@openbsd.org>
Fri, 16 Jul 2010 21:47:02 +0000
(21:47 +0000)
OK nicm
usr.bin/diff/diffreg.c
patch
|
blob
|
history
diff --git
a/usr.bin/diff/diffreg.c
b/usr.bin/diff/diffreg.c
index
443d108
..
8beed55
100644
(file)
--- a/
usr.bin/diff/diffreg.c
+++ b/
usr.bin/diff/diffreg.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: diffreg.c,v 1.7
8 2010/07/16 08:06:00
ray Exp $ */
+/* $OpenBSD: diffreg.c,v 1.7
9 2010/07/16 21:47:02
ray Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@
-382,7
+382,8
@@
diffreg(char *file1, char *file2, int flags)
warnx("No more processes");
status |= 2;
xfree(header);
- return (D_ERROR);
+ rval = D_ERROR;
+ goto closem;
case 0:
/* child */
if (pfd[0] != STDIN_FILENO) {