summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy McSwain <guy.mcswain@gmail.com>2020-05-31 13:44:14 -0500
committerGuy McSwain <guy.mcswain@gmail.com>2020-06-27 07:25:45 -0500
commita77351a941e6716a588c48b99ef0fd3462be9cae (patch)
treeee4c234a1613255318cc7897cedbb4a92b5f2f55
parenteb7600ecd9d14ef2ec6d98105ed0a3003135da0d (diff)
Revert "Issue #220 Calling exit from a signal handler is not safe."
-rw-r--r--pigpio.c6
-rw-r--r--pigpio.h2
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 <http://unlicense.org/>
*/
-/* 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 <http://unlicense.org/>
#include <stdint.h>
#include <pthread.h>
-#define PIGPIO_VERSION 7602
+#define PIGPIO_VERSION 7601
/*TEXT