From fc37a8c8677884492ddfb8c4c090e6d1525472a4 Mon Sep 17 00:00:00 2001 From: Guy McSwain Date: Sun, 31 May 2020 13:44:14 -0500 Subject: [PATCH] Revert "Issue #220 Calling exit from a signal handler is not safe." --- pigpio.c | 6 +++--- pigpio.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pigpio.c b/pigpio.c index 5e04e0a..5b11476 100644 --- a/pigpio.c +++ b/pigpio.c @@ -25,7 +25,7 @@ OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to */ -/* pigpio version 7602 */ +/* pigpio version 76 */ /* include ------------------------------------------------------- */ @@ -5621,7 +5621,7 @@ static void sigHandler(int signum) default: DBG(DBG_ALWAYS, "Unhandled signal %d, terminating\n", signum); gpioTerminate(); - _exit(); + exit(-1); } } } @@ -5631,7 +5631,7 @@ static void sigHandler(int signum) DBG(DBG_ALWAYS, "Unhandled signal %d, terminating\n", signum); gpioTerminate(); - _exit(); + exit(-1); } } diff --git a/pigpio.h b/pigpio.h index 56a5f11..7aa6f78 100644 --- a/pigpio.h +++ b/pigpio.h @@ -30,7 +30,7 @@ For more information, please refer to #include #include -#define PIGPIO_VERSION 7602 +#define PIGPIO_VERSION 7601 /*TEXT