From ef61ed10c2b6d8cbfc3facd5382415f199158be7 Mon Sep 17 00:00:00 2001 From: Appla Date: Wed, 21 Feb 2024 22:33:15 +0800 Subject: [PATCH] Remove redundant getpid function call (#13454) --- Zend/zend_max_execution_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_max_execution_timer.c b/Zend/zend_max_execution_timer.c index 92b70fbb2a6..16c2b7e2b8d 100644 --- a/Zend/zend_max_execution_timer.c +++ b/Zend/zend_max_execution_timer.c @@ -66,7 +66,7 @@ ZEND_API void zend_max_execution_timer_init(void) /* {{{ */ zend_strerror_noreturn(E_ERROR, errno, "Could not create timer"); } - EG(pid) = getpid(); + EG(pid) = pid; # 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);