From owner-freebsd-bugs@FreeBSD.ORG Tue Jul 22 06:24:16 2008 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B89561065673 for ; Tue, 22 Jul 2008 06:24:16 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 53F3E8FC1D for ; Tue, 22 Jul 2008 06:24:15 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1109352fgb.35 for ; Mon, 21 Jul 2008 23:24:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=z2XpYnFkJu55wYn/12VgSrMVxsoUe4KUDMhlhtdKWgo=; b=l2pjTt8h7cjgwbI34sjS5aLijez/ZLVNI43mHuc/OxObLVGPc6hdQolhHMP3UtohXu 8N+eBSkkEZS5+MOoJtUZ4qPBoE25oRCo78K/q2bCQC4tc4Td4PLNA2aV0mKDb0XfWZN9 gtqBr9sUlSiIGiXFcOCp47K1CGcAgH2dPdRBk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=bIXE7DyfcmPpaURbyB3Df/TzbyrVSnLgVj0iHEWH7xnd8Xa795em4a9JTbi6GA4LOI FPqmCJKTr1HZNEN1BIjnrXlEqnrjt65ckN+mdABNsN2yXwPx75Mwub6af6Zx0J5gLWpy QOEMY0aArx1mnng+q2mMKixXtg8tKiX4G94F0= Received: by 10.86.98.10 with SMTP id v10mr6046621fgb.39.1216707855158; Mon, 21 Jul 2008 23:24:15 -0700 (PDT) Received: by 10.86.51.1 with HTTP; Mon, 21 Jul 2008 23:24:15 -0700 (PDT) Message-ID: <7d6fde3d0807212324x514c304fo19b71d9800ef9862@mail.gmail.com> Date: Mon, 21 Jul 2008 23:24:15 -0700 From: "Garrett Cooper" To: "Antoine Brodin" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200807202210.m6KMA4cm032331@freefall.freebsd.org> <7d6fde3d0807201714g49eb4a80ncfcc1cc800ad595e@mail.gmail.com> <7d6fde3d0807210104t188b6ab5hc61dc67c49d27188@mail.gmail.com> Cc: freebsd-bugs@freebsd.org Subject: Re: bin/125680: atacontrol(8): atacontrol depends on executable in /usr X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 06:24:16 -0000 On Mon, Jul 21, 2008 at 1:33 AM, Antoine Brodin wrote: > On Mon, Jul 21, 2008 at 10:04 AM, Garrett Cooper wrote: >> Antoine, >> You're right. I flip-flopped parent and child there in my >> original statement. >> I also saw the async ('&') terminal command. >> But what is ultimately gained by forking another process to read >> a device other than just resuming control for the terminal to the >> user? It seems like all this does is create potential for additional >> zombie processes on the system... >> Just as an experiment, could you insert another printf or some >> statement to ensure that the read is deterministically completed every >> time? > > I have attached a patch with an extra printf. > I guess that the dd/read is done in the background because it can take > hours, so the user doesn't have to wait hours to have his terminal > back. > > Cheers, > > Antoine Ok, fair enough. Cheers, -Garrett