1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

sodium_utils tests: exit() -> _exit()

This commit is contained in:
Frank Denis 2022-11-13 23:49:38 +01:00
parent 870c6fc53f
commit 55b4510986
2 changed files with 8 additions and 2 deletions

View File

@ -6,6 +6,9 @@
#ifdef HAVE_CATCHABLE_SEGV
# include <signal.h>
#endif
#ifndef _WIN32
# include <unistd.h>
#endif
#define TEST_NAME "sodium_utils2"
#include "cmptest.h"
@ -36,7 +39,7 @@ segv_handler(int sig)
signal(SIGABRT, SIG_DFL);
# endif
#endif
exit(0);
_exit(0);
}
int

View File

@ -6,6 +6,9 @@
#ifdef HAVE_CATCHABLE_SEGV
# include <signal.h>
#endif
#ifndef _WIN32
# include <unistd.h>
#endif
#define TEST_NAME "sodium_utils3"
#include "cmptest.h"
@ -32,7 +35,7 @@ segv_handler(int sig)
signal(SIGABRT, SIG_DFL);
# endif
#endif
exit(0);
_exit(0);
}
int