Is it considered to be ok to not check the return code of close(2) in base?
Yuri
yuri at rawbw.com
Fri Dec 29 18:19:43 UTC 2017
Some base utilities sometimes close files that they open for their
purposes without checking the error code of close(2).
Is this considered to be ok, because it's just a close call and we are
done with that file descriptor, or is it considered to be more
appropriate to check close's error code?
Maybe there is some policy that covers this?
IMO, every system call's return value should be checked, just in case.
Yuri
More information about the freebsd-hackers
mailing list