From owner-freebsd-current@FreeBSD.ORG Tue Feb 1 19:13:35 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B428816A4CE for ; Tue, 1 Feb 2005 19:13:35 +0000 (GMT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [128.30.28.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1263B43D49 for ; Tue, 1 Feb 2005 19:13:35 +0000 (GMT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.9/8.12.9) with ESMTP id j11JDXaa084865 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK CN=khavrinen.lcs.mit.edu issuer=SSL+20Client+20CA); Tue, 1 Feb 2005 14:13:33 -0500 (EST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.9/8.12.9/Submit) id j11JDXsf084862; Tue, 1 Feb 2005 14:13:33 -0500 (EST) (envelope-from wollman) Date: Tue, 1 Feb 2005 14:13:33 -0500 (EST) From: Garrett Wollman Message-Id: <200502011913.j11JDXsf084862@khavrinen.lcs.mit.edu> To: Peter Jeremy In-Reply-To: <20050201190318.GE45608@cirb503493.alcatel.com.au> References: <20050201101113.J572@localhost> <20050201190318.GE45608@cirb503493.alcatel.com.au> X-Spam-Score: -19.8 () IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES X-Scanned-By: MIMEDefang 2.37 X-Mailman-Approved-At: Wed, 02 Feb 2005 13:23:09 +0000 cc: current@FreeBSD.ORG Subject: Re: cynchronised sleep capbilty.. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2005 19:13:35 -0000 < said: > 2) 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. SIGCHLD is good enough. while :; do sleep 10 & do_something wait done -GAWollman