fork子进程时,lwp_struct_copy函数增加拷贝working_directory功能 (#7380)

This commit is contained in:
xiao-mang 2023-04-26 17:21:00 +08:00 committed by GitHub
parent 6e7c5d9bc9
commit c043657353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1623,6 +1623,7 @@ static void lwp_struct_copy(struct rt_lwp *dst, struct rt_lwp *src)
dst->sa_flags = src->sa_flags; dst->sa_flags = src->sa_flags;
dst->signal_mask = src->signal_mask; dst->signal_mask = src->signal_mask;
rt_memcpy(dst->signal_handler, src->signal_handler, sizeof dst->signal_handler); rt_memcpy(dst->signal_handler, src->signal_handler, sizeof dst->signal_handler);
rt_strcpy(dst->working_directory, src->working_directory);
} }
static int lwp_copy_files(struct rt_lwp *dst, struct rt_lwp *src) static int lwp_copy_files(struct rt_lwp *dst, struct rt_lwp *src)