Chet Ramey wrote:
> This is a classic race condition.
I see. Thanks for the explanation.
Glenn Morris wrote:
> Hi,
>
> This is a question similar to one from September 2006:
>
> http://lists.gnu.org/archive/html/bug-bash/2006-09/msg00077.html
>
>
> Using bash 3.2.39 on x86_64 RHEL5.2, I have a script with contents:
>
>
> function bar ()
> {
> sleep 10 &
> pid=$!
> exe
Hi,
This is a question similar to one from September 2006:
http://lists.gnu.org/archive/html/bug-bash/2006-09/msg00077.html
Using bash 3.2.39 on x86_64 RHEL5.2, I have a script with contents:
function bar ()
{
sleep 10 &
pid=$!
exec 3>&2 2>/dev/null
kill $pid
#usleep 1