From owner-cvs-all Thu Jul 19 21:28:37 2001 Delivered-To: cvs-all@freebsd.org Received: from coffee.q9media.com (coffee.q9media.com [216.94.229.19]) by hub.freebsd.org (Postfix) with ESMTP id E914137B407; Thu, 19 Jul 2001 21:28:29 -0700 (PDT) (envelope-from mike@coffee.q9media.com) Received: (from mike@localhost) by coffee.q9media.com (8.11.2/8.11.2) id f6K4jS057375; Fri, 20 Jul 2001 00:45:28 -0400 (EDT) (envelope-from mike) Date: Fri, 20 Jul 2001 00:45:28 -0400 From: Mike Barcroft To: Brian Dean Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/usr.bin/nohup nohup.c nohup.1 Message-ID: <20010720004528.B57085@coffee.q9media.com> References: <200107192125.f6JLPAE95986@freefall.freebsd.org> <20010719235441.A92761@neutrino.bsdhome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010719235441.A92761@neutrino.bsdhome.com>; from bsd@bsdhome.com on Thu, Jul 19, 2001 at 11:54:41PM -0400 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jul 19, 2001 at 11:54:41PM -0400, Brian Dean wrote: > On Thu, Jul 19, 2001 at 02:25:10PM -0700, Mike Barcroft wrote: > > > > mike 2001/07/19 14:25:10 PDT > > > > Modified files: > > usr.bin/nohup nohup.c nohup.1 > > Log: > > [...] > > > - Actually append to nohup.out (as documented and required > > by standard) instead of clobbering it. > > I'm confused by this comment ... I use nohup all the time and have > never had it clobber the output file. Can you clarify this a little? nohup(1) used to open(2) the file then lseek(2) to the end of the file, instead of just opening with O_APPEND. So two version running at the same time clobber each other. Try this with the old version: /usr/bin/nohup du /var & /usr/bin/nohup du /usr you'll find only one of them will be outputted. With this version the two may end up being intertwined, but no output is lost. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message