Remove redundant getpid function call (#13454)

This commit is contained in:
Appla 2024-02-21 22:33:15 +08:00 committed by GitHub
parent 1bef861527
commit ef61ed10c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ ZEND_API void zend_max_execution_timer_init(void) /* {{{ */
zend_strerror_noreturn(E_ERROR, errno, "Could not create timer"); zend_strerror_noreturn(E_ERROR, errno, "Could not create timer");
} }
EG(pid) = getpid(); EG(pid) = pid;
# ifdef MAX_EXECUTION_TIMERS_DEBUG # ifdef MAX_EXECUTION_TIMERS_DEBUG
fprintf(stderr, "Timer %#jx created on thread %d\n", (uintmax_t) EG(max_execution_timer_timer), sev.sigev_notify_thread_id); fprintf(stderr, "Timer %#jx created on thread %d\n", (uintmax_t) EG(max_execution_timer_timer), sev.sigev_notify_thread_id);