cynchronised sleep capbilty..
Garrett Wollman
wollman at khavrinen.lcs.mit.edu
Tue Feb 1 11:13:35 PST 2005
<<On Wed, 2 Feb 2005 06:03:18 +1100, Peter Jeremy <PeterJeremy at optushome.com.au> said:
> 2) <kludge>Write a small C program that uses setitimer() and signals
> its parent whenever the timer triggers. Run it in the background
> and just pause within the sh loop.</kludge>
SIGCHLD is good enough.
while :; do
sleep 10 &
do_something
wait
done
-GAWollman
More information about the freebsd-current
mailing list