Skip to content

Commit ef61ed1

Browse files
authored
Remove redundant getpid function call (#13454)
1 parent 1bef861 commit ef61ed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_max_execution_timer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ ZEND_API void zend_max_execution_timer_init(void) /* {{{ */
6666
zend_strerror_noreturn(E_ERROR, errno, "Could not create timer");
6767
}
6868

69-
EG(pid) = getpid();
69+
EG(pid) = pid;
7070

7171
# ifdef MAX_EXECUTION_TIMERS_DEBUG
7272
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)