Skip to content

Commit

Permalink
add file path in opcache lock file error (php#10331)
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Francoz <[email protected]>
  • Loading branch information
jfcoz and Julien Francoz authored Oct 9, 2023
1 parent d17c672 commit 36b194b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/opcache/zend_shared_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void zend_shared_alloc_create_lock(char *lockfile_path)
snprintf(lockfile_name, sizeof(lockfile_name), "%s/%sXXXXXX", lockfile_path, SEM_FILENAME_PREFIX);
lock_file = mkstemp(lockfile_name);
if (lock_file == -1) {
zend_accel_error_noreturn(ACCEL_LOG_FATAL, "Unable to create lock file: %s (%d)", strerror(errno), errno);
zend_accel_error_noreturn(ACCEL_LOG_FATAL, "Unable to create opcache lock file in %s: %s (%d)", lockfile_path, strerror(errno), errno);
}

fchmod(lock_file, 0666);
Expand Down

0 comments on commit 36b194b

Please sign in to comment.