Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/mount gcc 4.9 produces vfork clobberation warnings for ...



details:   https://anonhg.NetBSD.org/src/rev/ffc8a48e34dd
branches:  trunk
changeset: 335376:ffc8a48e34dd
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Jan 04 22:05:37 2015 +0000

description:
gcc 4.9 produces vfork clobberation warnings for "name" and "buflen".
Since there's no performance reason to use vfork here, just replace it
with fork and be done with warnings once and for all.

diffstat:

 sbin/mount/mount.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r b8ea1dcf923a -r ffc8a48e34dd sbin/mount/mount.c
--- a/sbin/mount/mount.c        Sun Jan 04 21:38:58 2015 +0000
+++ b/sbin/mount/mount.c        Sun Jan 04 22:05:37 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount.c,v 1.99 2013/10/05 08:06:35 ast Exp $   */
+/*     $NetBSD: mount.c,v 1.100 2015/01/04 22:05:37 pooka Exp $        */
 
 /*
  * Copyright (c) 1980, 1989, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)mount.c    8.25 (Berkeley) 5/8/95";
 #else
-__RCSID("$NetBSD: mount.c,v 1.99 2013/10/05 08:06:35 ast Exp $");
+__RCSID("$NetBSD: mount.c,v 1.100 2015/01/04 22:05:37 pooka Exp $");
 #endif
 #endif /* not lint */
 
@@ -473,9 +473,9 @@
                        warn("Cannot create pipe");
        }
 
-       switch (pid = vfork()) {
+       switch (pid = fork()) {
        case -1:                                /* Error. */
-               warn("vfork");
+               warn("fork");
                if (optbuf)
                        free(optbuf);
                free(argv);



Home | Main Index | Thread Index | Old Index