Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Nov 2009 14:28:54 +0700
From:      Eugene Grosbein <eugen@eg.sd.rdtc.ru>
To:        Jilles Tjoelker <jilles@stack.nl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: [patch] add pwait utility
Message-ID:  <20091107072854.GC14078@rdtc.ru>
In-Reply-To: <20091106222446.GB60707@stack.nl>
References:  <20091106222446.GB60707@stack.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091107072854.GC14078>