in Tutorials/ErrorReporting/Stage1/main.c [362:370]
static void CloseFdAndPrintError(int fd, const char *fdName)
{
if (fd >= 0) {
int result = close(fd);
if (result != 0) {
Log_Debug("ERROR: Could not close fd %s: %s (%d).\n", fdName, strerror(errno), errno);
}
}
}