1SIGSUSPEND(2) 386BSD Programmer's Manual SIGSUSPEND(2) 2 3NNAAMMEE 4 ssiiggssuussppeenndd - atomically release blocked signals and wait for interrupt 5 6SSYYNNOOPPSSIISS 7 ##iinncclluuddee <<ssyyss//ssiiggnnaall..hh>> 8 9 _i_n_t 10 ssiiggssuussppeenndd(_c_o_n_s_t _s_i_g_s_e_t__t *_s_i_g_m_a_s_k) 11 12DDEESSCCRRIIPPTTIIOONN 13 SSiiggssuussppeenndd() temporarily changes the blocked signal mask to the set to 14 which _s_i_g_m_a_s_k points, and then waits for a signal to arrive; on return 15 the previous set of masked signals is restored. The signal mask set is 16 usually empty to indicate that all signals are to be unblocked for the 17 duration of the call. 18 19 In normal usage, a signal is blocked using sigprocmask(2) to begin a 20 critical section, variables modified on the occurrence of the signal are 21 examined to determine that there is no work to be done, and the process 22 pauses awaiting work by using ssiiggssuussppeenndd() with the previous mask 23 returned by sigprocmask. 24 25RREETTUURRNN VVAALLUUEESS 26 The ssiiggssuussppeenndd() function always terminates by being interrupted, 27 returning -1 with _e_r_r_n_o set to EINTR. 28 29SSEEEE AALLSSOO 30 sigprocmask(2), sigaction(2), sigsetops(3) 31 32SSTTAANNDDAARRDDSS 33 The ssiiggssuuppeenndd function call conforms to IEEE Std1003.1-1988 (``POSIX''). 34 35BSD Experimental July 23, 1991 1 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67