diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-02-10 17:03:46 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-02-10 17:03:46 +0000 |
commit | aee3d6896ab728aa9270377bdb6cb5efe21e9144 (patch) | |
tree | 00439ecb9712bc4f03210d3f2fbb5e83ad970096 /c/src/exec/posix/src/sigtimedwait.c | |
parent | Comments fixed after problem report from Ian Lance Taylor <ian@airs.com>. (diff) | |
download | rtems-aee3d6896ab728aa9270377bdb6cb5efe21e9144.tar.bz2 |
POSIX timer support modifications.
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/posix/src/sigtimedwait.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/c/src/exec/posix/src/sigtimedwait.c b/c/src/exec/posix/src/sigtimedwait.c index bb35dd30d7..87bb0ff372 100644 --- a/c/src/exec/posix/src/sigtimedwait.c +++ b/c/src/exec/posix/src/sigtimedwait.c @@ -112,6 +112,14 @@ int sigtimedwait( _Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval ); _Thread_Enable_dispatch(); + /* + * When the thread is set free by a signal, it is need to eliminate + * the signal. + */ + + _POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, + FALSE, FALSE ); + errno = _Thread_Executing->Wait.return_code; return the_info->si_signo; } |