forked from Imagelibrary/rtems
2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/psignalclearsignals.c: Add comments.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* posix/src/psignalclearsignals.c: Add comments.
|
||||||
|
|
||||||
2009-08-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
2009-08-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||||
|
|
||||||
* libcsupport/include/rtems/libio_.h,
|
* libcsupport/include/rtems/libio_.h,
|
||||||
|
|||||||
@@ -61,8 +61,8 @@ bool _POSIX_signals_Clear_signals(
|
|||||||
else
|
else
|
||||||
signals_blocked = SIGNAL_ALL_MASK;
|
signals_blocked = SIGNAL_ALL_MASK;
|
||||||
|
|
||||||
/* XXX this is not right for siginfo type signals yet */
|
/* XXX is this right for siginfo type signals? */
|
||||||
/* XXX since they can't be cleared the same way */
|
/* XXX are we sure they can be cleared the same way? */
|
||||||
|
|
||||||
_ISR_Disable( level );
|
_ISR_Disable( level );
|
||||||
if ( is_global ) {
|
if ( is_global ) {
|
||||||
@@ -71,6 +71,11 @@ bool _POSIX_signals_Clear_signals(
|
|||||||
psiginfo = (POSIX_signals_Siginfo_node *)
|
psiginfo = (POSIX_signals_Siginfo_node *)
|
||||||
_Chain_Get_unprotected( &_POSIX_signals_Siginfo[ signo ] );
|
_Chain_Get_unprotected( &_POSIX_signals_Siginfo[ signo ] );
|
||||||
_POSIX_signals_Clear_process_signals( signo );
|
_POSIX_signals_Clear_process_signals( signo );
|
||||||
|
/*
|
||||||
|
* It may be impossible to get here with an empty chain
|
||||||
|
* BUT until that is proven we need to be defensive and
|
||||||
|
* protect against it.
|
||||||
|
*/
|
||||||
if ( psiginfo ) {
|
if ( psiginfo ) {
|
||||||
*info = psiginfo->Info;
|
*info = psiginfo->Info;
|
||||||
_Chain_Append_unprotected(
|
_Chain_Append_unprotected(
|
||||||
|
|||||||
Reference in New Issue
Block a user