Skip to content

Commit f165b58

Browse files
committed
Cleanup: Correct _exit
1 parent 26ea00a commit f165b58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rtapi/uspace_rtapi_main.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,12 +599,12 @@ static void signal_handler(int sig, siginfo_t * /*si*/, void * /*uctx*/) {
599599
case SIGXCPU:
600600
// should not happen - must be handled in RTAPI if enabled
601601
rtapi_print_msg(RTAPI_MSG_ERR, "rtapi_app: BUG: SIGXCPU received - exiting\n");
602-
exit(0);
602+
_exit(0);
603603
break;
604604

605605
case SIGTERM:
606606
rtapi_print_msg(RTAPI_MSG_ERR, "rtapi_app: SIGTERM - shutting down\n");
607-
exit(0);
607+
_exit(0);
608608
break;
609609

610610
default: // pretty bad
@@ -616,7 +616,7 @@ static void signal_handler(int sig, siginfo_t * /*si*/, void * /*uctx*/) {
616616
kill(getpid(), sig);
617617
break;
618618
}
619-
exit(1);
619+
_exit(1);
620620
}
621621

622622
const static size_t PRE_ALLOC_SIZE = 1024 * 1024 * 32;

0 commit comments

Comments
 (0)