Closed N-R-K closed 1 year ago
exit(0)
main()
errno = 0
according to waitpid(3) manpage:
| This macro (WEXITSTATUS) should be employed only if WIFEXITED returned true.
scrotExecApp: fix memory leak and style cleanup
exit(0)
- simply let the control return back tomain()
where it will do some cleanup and exit anyways.errno = 0
.scrotExecApp: check for WIFEXITED first
according to waitpid(3) manpage:
| This macro (WEXITSTATUS) should be employed only if WIFEXITED returned true.