tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pwait(1) added



On Tuesday 03 Mar 2015 20:40:49 matthew sporleder wrote:
> On Tue, Mar 3, 2015 at 8:37 PM, Roy Marples <roy%marples.name@localhost> wrote:
> > On Tuesday 03 Mar 2015 21:17:34 Marc Balmer wrote:
> >> Am 03.03.15 um 19:34 schrieb Christos Zoulas:
> >> > It is a tool from FreeBSD that lets you wait for a set of abtrary pids
> >> > to exit. Do you think this tool is useful or should I remove it? Joerg
> >> > asked for a timeout feature. Is that something that should be added?
> >> > 
> >> > https://www.freebsd.org/cgi/man.cgi?pwait
> >> 
> >> you should not remove it.  it can be useful.  as for the timeout
> >> feature, I don't see much gain in it.  Either you wait for a process, or
> >> you don't.
> > 
> > I disagree with that - everything should have a definable timeout. It
> > sucks to wait for a constantly spinning process (for example, bugs!)
> > 
> > If you don't specify a timeout then sure, wait forever.
> 
> from flock(1)
>      -w, --wait, --timeout seconds
>                         Fail if the lock could not be obtained after
> seconds.
> 
> Seems like a smart addition from a similar-ish tool

Oddly enough, Christos prompted me to add a timeout to ifconfig -w ;)

Roy


Home | Main Index | Thread Index | Old Index