mirror of https://github.com/joan2937/pigpio
Revert "Issue #220 Calling exit from a signal handler is not safe."
This commit is contained in:
parent
c85285ee38
commit
fc37a8c867
6
pigpio.c
6
pigpio.c
|
@ -25,7 +25,7 @@ OTHER DEALINGS IN THE SOFTWARE.
|
||||||
For more information, please refer to <http://unlicense.org/>
|
For more information, please refer to <http://unlicense.org/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* pigpio version 7602 */
|
/* pigpio version 76 */
|
||||||
|
|
||||||
/* include ------------------------------------------------------- */
|
/* include ------------------------------------------------------- */
|
||||||
|
|
||||||
|
@ -5621,7 +5621,7 @@ static void sigHandler(int signum)
|
||||||
default:
|
default:
|
||||||
DBG(DBG_ALWAYS, "Unhandled signal %d, terminating\n", signum);
|
DBG(DBG_ALWAYS, "Unhandled signal %d, terminating\n", signum);
|
||||||
gpioTerminate();
|
gpioTerminate();
|
||||||
_exit();
|
exit(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5631,7 +5631,7 @@ static void sigHandler(int signum)
|
||||||
|
|
||||||
DBG(DBG_ALWAYS, "Unhandled signal %d, terminating\n", signum);
|
DBG(DBG_ALWAYS, "Unhandled signal %d, terminating\n", signum);
|
||||||
gpioTerminate();
|
gpioTerminate();
|
||||||
_exit();
|
exit(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue