Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Submitted By: Markus Elfring (elfring)
Assigned to: Nobody/Anonymous (nobody)
Summary: Completion of error handling
Some checks for return codes are missing.
the return code of fclose function (in this case) is totally irrelevant
for the further processing. If indeed the file closing failed, there is
nothing to do about , because you are already done with the file
processing. Maybe just for logging purposes, but once the file was open,
there is no reason for the fclose to fail.
For the semctl is the same - it is a failure to destroy a resource - and
the destroy is anyhow done at shutdown time only.