Re: cynchronised sleep capbilty..

From: Garrett Wollman <wollman_at_khavrinen.lcs.mit.edu>
Date: Tue, 1 Feb 2005 14:13:33 -0500 (EST)
<<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
Received on Tue Feb 01 2005 - 18:13:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC