> > if (fsync(fd) != 0)
> > err(1, "fsync %s", argv[1]);
> > close(fd);
> > }
>
> Pretty much the thing I had in mind, except that the close return code is
> disregarded here...
Indeed, but OTOH, what error is close to report when the file is opened
read-only?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/