Date: Sun, 05 Apr 1998 12:30:45 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Peter Wemm <peter@netplex.com.au> Cc: Bruce Evans <bde@zeta.org.au>, smp@FreeBSD.ORG Subject: Re: more SMP stuff Message-ID: <7036.891772245@critter.freebsd.dk> In-Reply-To: Your message of "Sun, 05 Apr 1998 17:51:11 %2B0800." <199804050951.RAA08764@spinner.netplex.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
I just committed a working version of bruces diff. Bruce: just forgot to subtract the current "runtime" from the arg to tsleep. Poul-Henning In message <199804050951.RAA08764@spinner.netplex.com.au>, Peter Wemm writes: >Bruce Evans wrote: >> I wrote: >> >nanosleep() is currently quite broken: >> >- EWOULDBLOCK is returned instead of 0 in most cases when the timeout >> > expires. >> >> Fixed by Peter. >> >> >- EWOULDBLOCK is returned instead of EINTR if an interrupt occurs and >> > syscalls are not being restarted after this interrupt. >> >> Actually, nanosleep() doesn't return in this case. > >I was using your diff to nanosleep, but a 1 second sleep started taking >724 seconds.... Perhaps it was the nanotime() twiddle I was trying.. > > >> Bruce >> > >Cheers, >-Peter >-- >Peter Wemm <peter@netplex.com.au> Netplex Consulting > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-smp" in the body of the message > -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "Drink MONO-tonic, it goes down but it will NEVER come back up!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7036.891772245>