diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-27 17:37:54 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-27 17:37:54 +0000 |
commit | 234a36c996c8fe53a0cfd845db24f18314965a94 (patch) | |
tree | cffe12ed792313ed2caba3db826bc6946f413b86 /cpukit | |
parent | 2010-07-27 Vinu Rajashekhar <vinutheraj@gmail.com> (diff) | |
download | rtems-234a36c996c8fe53a0cfd845db24f18314965a94.tar.bz2 |
2010-07-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/sigsuspend.c: Do not assert unless RTEMS_DEBUG is defined.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/posix/src/sigsuspend.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index e55b3b7a96..b70bd5c4c9 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -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> PR 1629/cpukit diff --git a/cpukit/posix/src/sigsuspend.c b/cpukit/posix/src/sigsuspend.c index 606e8556f5..77b6d90a29 100644 --- a/cpukit/posix/src/sigsuspend.c +++ b/cpukit/posix/src/sigsuspend.c @@ -51,7 +51,9 @@ int sigsuspend( * sigtimedwait() returns the signal number while sigsuspend() * 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 ); } |