From 9663f7e3a4f4001f5c3aa801fdf9c643a5035b02 Mon Sep 17 00:00:00 2001 From: Will Hedgecock Date: Tue, 25 Jan 2022 10:07:06 -0600 Subject: [PATCH] Allow SIGINT to reach main Java application --- src/main/c/Posix/SerialPort_Posix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/c/Posix/SerialPort_Posix.c b/src/main/c/Posix/SerialPort_Posix.c index b9356b0..ae8c616 100644 --- a/src/main/c/Posix/SerialPort_Posix.c +++ b/src/main/c/Posix/SerialPort_Posix.c @@ -2,7 +2,7 @@ * SerialPort_Posix.c * * Created on: Feb 25, 2012 - * Last Updated on: Jan 19, 2022 + * Last Updated on: Jan 25, 2022 * Author: Will Hedgecock * * 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_mask = blockMask; sigaction(SIGIO, &ignoreAction, NULL); - sigaction(SIGINT, &ignoreAction, NULL); + sigaction(SIGHUP, &ignoreAction, NULL); sigaction(SIGTERM, &ignoreAction, NULL); sigaction(SIGCONT, &ignoreAction, NULL); sigaction(SIGUSR1, &ignoreAction, NULL);