From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1031 Path: news.gmane.org!not-for-mail From: Alex Efros Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: timeout chpst -L Date: Tue, 14 Feb 2006 12:23:23 +0200 Organization: asdfGroup Inc., http://powerman.asdfGroup.com/ Message-ID: <20060214102323.GL6585@home.power> References: <20060213163054.GC2511@home.power> <20060213201807.GF6585@home.power> <20060214084509.24951.qmail@125e08fe97c020.315fe32.mid.smarden.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139912606 19988 80.91.229.2 (14 Feb 2006 10:23:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2006 10:23:26 +0000 (UTC) Original-X-From: supervision-return-1267-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Feb 14 11:23:25 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1F8xLA-0005cL-Mi for gcsg-supervision@gmane.org; Tue, 14 Feb 2006 11:23:24 +0100 Original-Received: (qmail 14277 invoked by uid 76); 14 Feb 2006 10:23:45 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 14271 invoked from network); 14 Feb 2006 10:23:45 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20060214084509.24951.qmail@125e08fe97c020.315fe32.mid.smarden.org> User-Agent: Mutt/1.5.11 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1031 Archived-At: Hi! On Tue, Feb 14, 2006 at 08:45:09AM +0000, Gerrit Pape wrote: > Yes, it's a race, the patch below should help. Thanks, Gerrit. Thanks, patch works. But I've found another bug, sorry. Now '-n' option don't work: $ tryto -t 2 -n 2 bash -c 'echo trying...; true'; echo done trying... done $ tryto -t 2 -n 2 bash -c 'echo trying...; false'; echo done trying... trying... trying... trying... trying... trying... trying... trying... trying... trying... [endless loop until Ctrl-C] -- WBR, Alex.