[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
Pádraig.
- dd SIGUSR1 race, Pádraig Brady, 2014/09/22
- Re: dd SIGUSR1 race, Federico Simoncelli, 2014/09/25
- Re: dd SIGUSR1 race, Pádraig Brady, 2014/09/25
- Re: dd SIGUSR1 race, Bernhard Voelker, 2014/09/26
- Re: dd SIGUSR1 race, Pádraig Brady, 2014/09/26
- Re: dd SIGUSR1 race,
Pádraig Brady <=
- Re: dd SIGUSR1 race, Federico Simoncelli, 2014/09/26
- Re: dd SIGUSR1 race, Pádraig Brady, 2014/09/26
- Re: dd SIGUSR1 race, Federico Simoncelli, 2014/09/26
- Re: dd SIGUSR1 race, Pádraig Brady, 2014/09/29
- Re: dd SIGUSR1 race, Bernhard Voelker, 2014/09/29
- Re: dd SIGUSR1 race, Pádraig Brady, 2014/09/29
- Re: dd SIGUSR1 race, Pádraig Brady, 2014/09/30
- Re: dd SIGUSR1 race, Federico Simoncelli, 2014/09/30
- Re: dd SIGUSR1 race, Bernhard Voelker, 2014/09/26
- Re: dd SIGUSR1 race, Pádraig Brady, 2014/09/26