pussuw commented on code in PR #6197:
URL: https://github.com/apache/incubator-nuttx/pull/6197#discussion_r878676114


##########
libs/libc/stdlib/lib_exit.c:
##########
@@ -39,9 +39,9 @@ void exit(int status)
 {
   atexit_call_exitfuncs(status);
 
-  /* REVISIT: Need to flush files and streams */
+  /* Call nx_exit() which will do the rest of the clean up and exit */
 
-  _exit(status);
+  nx_exit(status);

Review Comment:
   It does the file stream clean up etc, like before.
   Calling _exit() does not work it in fact results in system crash.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to