On Tue, 16 Jul 2002, Thunder from the hill wrote:
> > 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/
This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:20 EST