Browse Source

Fixed bug #25070 (Don't forget to unlock session files on win32 before

closing them).

Regions should be locked only briefly and should be unlocked before
closing a file or exiting the program. On Win32 locked files that are
closed without being explicitly unlocked will be unlocked only when "system
resources become avaliable".
PEAR_1_4DEV
Ilia Alshanetsky 23 years ago
parent
commit
569bd005d2
  1. 1
      ext/session/mod_files.c

1
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;
}

Loading…
Cancel
Save