Allow SIGINT to reach main Java application

This commit is contained in:
Will Hedgecock 2022-01-25 10:07:06 -06:00
parent 3a2a92e372
commit 9663f7e3a4
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* SerialPort_Posix.c * SerialPort_Posix.c
* *
* Created on: Feb 25, 2012 * Created on: Feb 25, 2012
* Last Updated on: Jan 19, 2022 * Last Updated on: Jan 25, 2022
* Author: Will Hedgecock * Author: Will Hedgecock
* *
* Copyright (C) 2012-2022 Fazecast, Inc. * Copyright (C) 2012-2022 Fazecast, Inc.
@ -335,7 +335,7 @@ JNIEXPORT void JNICALL Java_com_fazecast_jSerialComm_SerialPort_initializeLibrar
ignoreAction.sa_handler = SIG_IGN; ignoreAction.sa_handler = SIG_IGN;
ignoreAction.sa_mask = blockMask; ignoreAction.sa_mask = blockMask;
sigaction(SIGIO, &ignoreAction, NULL); sigaction(SIGIO, &ignoreAction, NULL);
sigaction(SIGINT, &ignoreAction, NULL); sigaction(SIGHUP, &ignoreAction, NULL);
sigaction(SIGTERM, &ignoreAction, NULL); sigaction(SIGTERM, &ignoreAction, NULL);
sigaction(SIGCONT, &ignoreAction, NULL); sigaction(SIGCONT, &ignoreAction, NULL);
sigaction(SIGUSR1, &ignoreAction, NULL); sigaction(SIGUSR1, &ignoreAction, NULL);