Date: Mon, 4 May 1998 16:40:55 +1000 (EST) From: John Birrell <jb@cimlogic.com.au> To: current@FreeBSD.ORG Subject: nanosleep time left Message-ID: <199805040640.QAA17091@cimlogic.com.au>
next in thread | raw e-mail | index | archive | help
My understanding of nanosleep in the POSIX standard is that if the time remaining argument is non-NULL, then the time remaining is supposed to be returned, regardless of whether the call was interrupted by a signal or not. So when no signal interrupts the call and it just times out, I expect that the fields in the time remaining will be zeroed. It seems that the kernel implementation of nanosleep doesn't do this. Can anyone (a) confirm this interpretation; and (b) confirm the kernel behaviour? It looks broken to me. -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805040640.QAA17091>