diff --git a/src/mount.h b/src/mount.h index 85f1604..324c1b5 100644 --- a/src/mount.h +++ b/src/mount.h @@ -148,7 +148,7 @@ FORCE_INLINE std::string mount_squashfs() { int r = fusefs_main(5, (char**) argv, fuse_mounted); // daemonize on success if (r != 0) LOGE("failed to mount squashfs"); - exit(r); + _Exit(r); } char c; diff --git a/src/untar.h b/src/untar.h index f0e66ad..14d77e9 100644 --- a/src/untar.h +++ b/src/untar.h @@ -625,6 +625,6 @@ FORCE_INLINE int extract_tar_gz_from_mem(char *data, int size) close(pipe_fds[0]); int r = gunzip(data, size, pipe_fds[1]); close(pipe_fds[1]); - exit(r); + _Exit(r); } } diff --git a/src/untraceable.h b/src/untraceable.h index 1b23673..d841303 100644 --- a/src/untraceable.h +++ b/src/untraceable.h @@ -87,7 +87,7 @@ FORCE_INLINE void check_debugger() { LOGD("being traced!"); kill(ppid, SIGKILL); } - exit(0); + _Exit(0); } } #endif