File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 431
431
problem for its asynchronous signal safety. It can lead to corrupt data,
432
432
deadlocks, etc. As the set of functions safe to use in a handler is limited,
433
433
one way to use the signals is only to set a global variable in the handler and
434
- test it later, for example in a loop that processes some events. As a function
435
- waiting for an event is typically interruptible by a signal (see above), setting
436
- the global variable and testing it later does not experience any real delay.
434
+ test it later, for example in a loop that processes some events. As the
435
+ function waiting for an event is typically interruptible by a signal (see
436
+ above), setting the global variable and testing it later does not experience any
437
+ real delay.
437
438
Example: \example {signals/event-loop.c}.
438
439
\item There is also a simplified signal facility \funnm {signal}(). We recommend
439
440
to use \funnm {sigaction}() only. Behavior of \funnm {signal}() is not specified
You can’t perform that action at this time.
0 commit comments