Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/find Use fork() instead of vfork(). The child calls...
details: https://anonhg.NetBSD.org/src/rev/12969c8ab519
branches: trunk
changeset: 514939:12969c8ab519
user: simonb <simonb%NetBSD.org@localhost>
date: Fri Sep 14 08:19:25 2001 +0000
description:
Use fork() instead of vfork(). The child calls execvp(), which calls
strdup(), which calls malloc()...
Fixes problem with "find .. -exec" growing as reported by Kazushi Marukawa
on current-users@.
diffstat:
usr.bin/find/function.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 378ae1193650 -r 12969c8ab519 usr.bin/find/function.c
--- a/usr.bin/find/function.c Fri Sep 14 07:05:51 2001 +0000
+++ b/usr.bin/find/function.c Fri Sep 14 08:19:25 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: function.c,v 1.35 2001/02/05 01:53:48 christos Exp $ */
+/* $NetBSD: function.c,v 1.36 2001/09/14 08:19:25 simonb Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "from: @(#)function.c 8.10 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: function.c,v 1.35 2001/02/05 01:53:48 christos Exp $");
+__RCSID("$NetBSD: function.c,v 1.36 2001/09/14 08:19:25 simonb Exp $");
#endif
#endif /* not lint */
@@ -354,7 +354,7 @@
fflush(stdout);
fflush(stderr);
- switch (pid = vfork()) {
+ switch (pid = fork()) {
case -1:
err(1, "fork");
/* NOTREACHED */
Home |
Main Index |
Thread Index |
Old Index