Subject: Re: [boost] [filesystems]
From: Adam Majer (amajer_at_[hidden])
Date: 2019-03-14 10:19:18
On 3/14/19 9:31 AM, Florian Lindner via Boost wrote:
> However, I have no idea how that could happen. I use the rename, so
> that a reading process never sees an empty file, but only no file or
> filed with info. Is there any race involved between ofs.close() and
> fs:rename()? The code was executed on a distributed network
> filesystem (lustre).
> Any ideas anyone?
`strace -e trace=%file,close program` and complain to file system for
not working. This doesn't seem to have anything to do with
boost::filesystem, more with the underlying filesystem.
It's not close that matters, but open. Your program should work just
fine without the explicit close.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk