Differences between exit() and _exit()

Differences between exit() and _exit() - – It is...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Differences between exit() and _exit() exit(int val) It flushes buffers of output streams. Then it exits the current process. _exit() It exits immediately without flushing any file buffers.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: – It is recommended to call _exit() in the child process if there is an error after exec. – In Solaris, exit() calls lseek to the beginning of the stdin causing problems in the parent....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online