Also, exit() is used which is not signal safe and has potential atexit() issues, _exit() should be used instead.
Also, exit() is used which is not signal safe and has potential atexit() issues, _exit() should be used instead.