From owner-cvs-src@FreeBSD.ORG Mon Dec 17 06:21:54 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E35E16A418; Mon, 17 Dec 2007 06:21:54 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 1E73213C465; Mon, 17 Dec 2007 06:21:54 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 44F3D1A4D7C; Sun, 16 Dec 2007 22:20:46 -0800 (PST) Date: Sun, 16 Dec 2007 22:20:46 -0800 From: Alfred Perlstein To: Diomidis Spinellis Message-ID: <20071217062046.GE16982@elvis.mu.org> References: <200712161747.lBGHlYk9093518@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200712161747.lBGHlYk9093518@repoman.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/mv mv.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Dec 2007 06:21:54 -0000 * Diomidis Spinellis [071216 09:47] wrote: > dds 2007-12-16 17:47:34 UTC > > FreeBSD src repository > > Modified files: > bin/mv mv.c > Log: > Eliminate gcc "variable clobbered" warnings by declaring the variables > living across the vfork as volatile. > > Noted by: kan > > Revision Changes Path > 1.48 +2 -1 src/bin/mv/mv.c I'm pretty sure that calling warn(3) under vfork() is not allowed as it can clobber stdio state. To fix this, have the parent catch a return value from the child and emit the warning. -Alfred