forked from Imagelibrary/rtems
2010-07-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/sigsuspend.c: Do not assert unless RTEMS_DEBUG is defined.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2010-07-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||||
|
|
||||||
|
* posix/src/sigsuspend.c: Do not assert unless RTEMS_DEBUG is defined.
|
||||||
|
|
||||||
2010-07-27 Vinu Rajashekhar <vinutheraj@gmail.com>
|
2010-07-27 Vinu Rajashekhar <vinutheraj@gmail.com>
|
||||||
|
|
||||||
PR 1629/cpukit
|
PR 1629/cpukit
|
||||||
|
|||||||
@@ -51,7 +51,9 @@ int sigsuspend(
|
|||||||
* sigtimedwait() returns the signal number while sigsuspend()
|
* sigtimedwait() returns the signal number while sigsuspend()
|
||||||
* is supposed to return -1 and EINTR when a signal is caught.
|
* is supposed to return -1 and EINTR when a signal is caught.
|
||||||
*/
|
*/
|
||||||
assert ( status != -1 );
|
#if defined(RTEMS_DEBUG)
|
||||||
|
assert( status != -1 );
|
||||||
|
#endif
|
||||||
|
|
||||||
rtems_set_errno_and_return_minus_one( EINTR );
|
rtems_set_errno_and_return_minus_one( EINTR );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user