[Top][All Lists]

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

Re: dd SIGUSR1 race

From: Pádraig Brady
Subject: Re: dd SIGUSR1 race
Date: Fri, 26 Sep 2014 16:15:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 09/26/2014 04:05 PM, Pádraig Brady wrote:
> +until ! kill -0 $pid 2>/dev/null; do
> +  # sleep first to give time for work and enablement of signal handler
> +  sleep .5
> +  kill -s USR1 $pid 2>/dev/null || break
> +done

Should probably simplify the example in the docs to just:

  until ! kill -s USR1 $pid 2>/dev/null; do sleep .5; done


reply via email to

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