next up previous contents
Next: 10.2.4 Signals supported by Up: 10.2 Signal handling Previous: 10.2.2 Linux signal options

10.2.3 signal under Linux

Under Linux, the signal function is equivalent to using sigaction with the SA_ONESHOT and SA_NOMASK options; that is, it corresponds to the classic, unreliable signal semantics as used under SVR4.

If you wish signal to use BSD semantics, most Linux systems provide a BSD compatibility library which can be linked with. To use this library, you could add the options

  -I/usr/include/bsd -lbsd
to the compilation command line. When porting applications using signal, pay close attention to what assumptions the program makes about use of signal handlers, and modify the code (or compile with the appropriate definitions) to get the right behavior.



Converted on:
Fri Mar 29 14:43:04 EST 1996