Override sigemptyset for platforms that do not export it
This commit is contained in:
parent
daa26dd8ad
commit
a742cad114
|
@ -339,7 +339,7 @@ JNIEXPORT void JNICALL Java_com_fazecast_jSerialComm_SerialPort_initializeLibrar
|
|||
|
||||
// Disable handling of various POSIX signals
|
||||
sigset_t blockMask;
|
||||
sigemptyset(&blockMask);
|
||||
memset(&blockMask, 0, sizeof(blockMask));
|
||||
struct sigaction ignoreAction = { 0 };
|
||||
ignoreAction.sa_handler = SIG_IGN;
|
||||
ignoreAction.sa_mask = blockMask;
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue