This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: Patch for review -- sleep() and nanosleep() return incorrect values when interrupted by a signal [format resend]
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Dan Jakubiec <dan dot jakubiec at systech dot com>
- Cc: ecos-patches at sources dot redhat dot com
- Date: Fri, 16 Jun 2006 20:21:55 +0200
- Subject: Re: Patch for review -- sleep() and nanosleep() return incorrect values when interrupted by a signal [format resend]
- References: <448E397F.6030906@systech.com>
On Mon, Jun 12, 2006 at 06:05:19PM -1000, Dan Jakubiec wrote:
> [Resending with better plain/text formatting. My apologies.]
>
> Currently, if nanosleep() is interrupted by a POSIX signal it returns
> 0. According to POSIX:
>
> If the /nanosleep/() function returns because it has been interrupted by
> a signal, it shall return a value of -1 and set /errno/ to indicate the
> interruption.
Committed,
Thanks
Andrew