From owner-freebsd-current Tue Aug 12 08:47:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA29594 for current-outgoing; Tue, 12 Aug 1997 08:47:03 -0700 (PDT) Received: from sos.freebsd.dk (sos.freebsd.dk [195.8.129.33]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA29585 for ; Tue, 12 Aug 1997 08:46:58 -0700 (PDT) Received: (from sos@localhost) by sos.freebsd.dk (8.8.7/8.7.3) id RAA00378; Tue, 12 Aug 1997 17:46:51 +0200 (MEST) From: Søren Schmidt Message-Id: <199708121546.RAA00378@sos.freebsd.dk> Subject: Re: Error in sleep ! In-Reply-To: from "[______ ______]" at "Aug 12, 97 06:39:14 pm" To: ache@nagual.pp.ru (=?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?=) Date: Tue, 12 Aug 1997 17:46:51 +0200 (MEST) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In reply to [______ ______] who wrote: [Charset KOI8-R unsupported, filtering to ASCII...] > On Tue, 12 Aug 1997, S_ren Schmidt wrote: > > > I've noticed sleep is"broken in current.. > > Run the little program at the end, and notice that the program exits > > the sleep call prematurely if a signal is catched. The remaining > > sleep period is not resumed after the signal.. > > This works as expected on 2.2.1 and the 10 or so other platforms > > I've tested sofar... > > Hmm. Sleep supposed to exit on _any_ signal per POSIX. Where you find > 10 platforms which breaks this rule? Hmm, we don't even use it correctly ourselves, check /bin/sleep !! I have the fear that it also is the case in other places. I've checked one more platform, SVR4.2MP it behaves like ours, but they have fixed their /bin/sleep :) How on earth did POSIX come up with that behavior ?? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end ..