Date: Tue, 12 Aug 1997 17:46:51 +0200 (MEST) From: Søren Schmidt <sos@sos.freebsd.dk> To: ache@nagual.pp.ru (=?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?=) Cc: current@FreeBSD.ORG Subject: Re: Error in sleep ! Message-ID: <199708121546.RAA00378@sos.freebsd.dk> In-Reply-To: <Pine.BSF.3.96.970812183136.20846A-100000@lsd.relcom.eu.net> from "[______ ______]" at "Aug 12, 97 06:39:14 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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 ..
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708121546.RAA00378>