Hi Yasuo,
On Thursday 30 January 2014 16:17:58 Yasuo Ohgaki wrote:
>
> I also notice other issue when closely looking at current code.
...
>
> However, when write() is called, it always close opened fd to address
> changed session ID.
I don't see that. You mean by the call to ps_files_close() within
ps_files_open(), and that close() call dropping the lock? That is conditional
on either data->fd < 0 (no file open, just a superfluous call to
ps_file_close()), or key != lastkey (and then a _different_ file will be
opened and locked for writing).
best regards
Patrick