Changeset 85c855af in rtems
- Timestamp:
- Sep 30, 2013, 6:10:45 AM (7 years ago)
- Branches:
- 4.11, 5, master
- Children:
- abceda99
- Parents:
- d2c5bff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/posix/src/sigsuspend.c
rd2c5bff r85c855af 34 34 sigset_t saved_signals_blocked; 35 35 sigset_t current_unblocked_signals; 36 #if defined(RTEMS_DEBUG) 37 int status; 38 #endif 36 39 37 40 /* … … 41 44 * 42 45 * We ignore the return status codes because sigsuspend() is 43 * defined to either terminate or return -1 with errno set to 46 * defined to either terminate or return -1 with errno set to 44 47 * EINTR. 45 48 */ 46 (void) sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); 49 #if defined(RTEMS_DEBUG) 50 status = 51 #else 52 (void) 53 #endif 54 sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); 47 55 48 56 current_unblocked_signals = ~(*sigmask); 49 (void) sigtimedwait( ¤t_unblocked_signals, NULL, NULL ); 57 58 #if defined(RTEMS_DEBUG) 59 status = 60 #else 61 (void) 62 #endif 63 sigtimedwait( ¤t_unblocked_signals, NULL, NULL ); 50 64 51 65 (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL );
Note: See TracChangeset
for help on using the changeset viewer.