[Top][All Lists]

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

Re: Wanted: bash enhancement... non-blocking 'wait'

From: Eric Blake
Subject: Re: Wanted: bash enhancement... non-blocking 'wait'
Date: Fri, 03 Sep 2010 11:44:38 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

On 09/02/2010 04:44 PM, Philip Prindeville wrote:
I wanted to check in and see if there was a chance of this feature being
accepted upstream before I spent any time on it... so here goes.

The "wait [n]" command is handy, but would be even handier is:

wait [[-a] n]

instead, which asynchronously checks to see if process 'n' has completed.

What's wrong with using the existing 'kill -0 pid' to check if pid still exists, rather than inventing a new argument to 'wait'?

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]