Skip to content

Commit 58c1dee

Browse files
committed
Remove redundant getpid function call (php#13454)
1 parent c18690a commit 58c1dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_max_execution_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ZEND_API void zend_max_execution_timer_init(void) /* {{{ */
5252
zend_strerror_noreturn(E_ERROR, errno, "Could not create timer");
5353
}
5454

55-
EG(pid) = getpid();
55+
EG(pid) = pid;
5656

5757
# ifdef MAX_EXECUTION_TIMERS_DEBUG
5858
fprintf(stderr, "Timer %#jx created on thread %d\n", (uintmax_t) EG(max_execution_timer_timer), sev.sigev_notify_thread_id);

0 commit comments

Comments
 (0)