On Tue, 8 Jan 2008, Bill Nottingham wrote:

> Mike McGrath ([EMAIL PROTECTED]) said:
> > /me wonders if this might work:
> >
> > #!/bin/bash
> >
> > message() {
> >     echo "Its not done yet.  Chill";
> > }
> >
> > echo "I take a while to complete"
> > # sleep 5 would be replaced with the syncmail script
> > sleep 5 &
> > pid=$!
> > while ps $pid > /dev/null
> > do
> >     trap message INT
> >     sleep .2
> > done
>
> Wouldn't that still have a (minimal) race window where it could
> be interrupted?

Grr, yes, it does.  /me re-thinks

        -Mike

_______________________________________________
Fedora-infrastructure-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list

Reply via email to