summaryrefslogtreecommitdiff
path: root/threadproc/unix/proc.c
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2022-02-09 10:39:35 +0000
committerIvan Zhakov <ivan@apache.org>2022-02-09 10:39:35 +0000
commit0ef545062eda29eb0db5f49e11ca4fec3e038529 (patch)
tree7e8a150c4e114f40c21af7dc5a9cb04a7033e9d4 /threadproc/unix/proc.c
parent011f944967c77b5608eaebf4cdc1947b7340d804 (diff)
parent89682a8e2e5eb498b6c4e4ff162052c7e2406a0b (diff)
downloadapr-win32-pollset-wakeup-no-file-socket-emulation.tar.gz
On 'win32-pollset-wakeup-no-file-socket-emulation' branch: Merge changes fromwin32-pollset-wakeup-no-file-socket-emulation
trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/win32-pollset-wakeup-no-file-socket-emulation@1897894 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/unix/proc.c')
-rw-r--r--threadproc/unix/proc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/threadproc/unix/proc.c b/threadproc/unix/proc.c
index ed7a05fda..ad31c814f 100644
--- a/threadproc/unix/proc.c
+++ b/threadproc/unix/proc.c
@@ -234,6 +234,9 @@ APR_DECLARE(apr_status_t) apr_proc_fork(apr_proc_t *proc, apr_pool_t *pool)
return errno;
}
else if (pid == 0) {
+#if AP_HAS_THREAD_LOCAL
+ apr_thread_current_after_fork();
+#endif
proc->pid = getpid();
/* Do the work needed for children PRNG(s). */