diff options
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r-- | ext/session/mod_files.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 50db773d50..bd5bf660a6 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -127,6 +127,7 @@ static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, cons static void ps_files_close(ps_files *data) { if (data->fd != -1) { + flock(data->fd, LOCK_UN); close(data->fd); data->fd = -1; } |