From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 7 07:41:05 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CEFF1065672 for ; Sat, 7 Nov 2009 07:41:05 +0000 (UTC) (envelope-from eugen@eg.sd.rdtc.ru) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [62.231.161.221]) by mx1.freebsd.org (Postfix) with ESMTP id BD4BF8FC14 for ; Sat, 7 Nov 2009 07:41:04 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.3/8.14.3) with ESMTP id nA77Ss21014459; Sat, 7 Nov 2009 14:28:54 +0700 (KRAT) (envelope-from eugen@eg.sd.rdtc.ru) Received: (from eugen@localhost) by eg.sd.rdtc.ru (8.14.3/8.14.3/Submit) id nA77SsU4014458; Sat, 7 Nov 2009 14:28:54 +0700 (KRAT) (envelope-from eugen) Date: Sat, 7 Nov 2009 14:28:54 +0700 From: Eugene Grosbein To: Jilles Tjoelker Message-ID: <20091107072854.GC14078@rdtc.ru> References: <20091106222446.GB60707@stack.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091106222446.GB60707@stack.nl> User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Sat, 07 Nov 2009 12:25:57 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: [patch] add pwait utility X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Nov 2009 07:41:05 -0000 On Fri, Nov 06, 2009 at 11:24:46PM +0100, Jilles Tjoelker wrote: > I propose adding a small new utility to /usr/bin: pwait. Similar to the > Solaris utility of the same name, it waits for any process to terminate. > Some use cases I have in mind: > > * rc.subr's wait_for_pids. This is a cleaner and more efficient fix for > PR conf/132766. In the rare case that /usr is not available, the old > sleep(1) method can be used. > * interactive use, e.g. to shut down the computer when some task is done > even if the task is already running I've always missed such command exactly for later case :-) Vote for it. Eugene Grosbein