Skip to content

Commit

Permalink
[shell/linux] fix __vsf_linux_fd_get_ex
Browse files Browse the repository at this point in the history
  • Loading branch information
versaloon committed Jul 31, 2023
1 parent 316b59e commit 3f5d324
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/shell/sys/linux/kernel/fs/vsf_linux_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -767,9 +767,8 @@ vsf_linux_fd_t * __vsf_linux_fd_get_ex(vsf_linux_process_t *process, int fd)
{
if (NULL == process) {
process = vsf_linux_get_cur_process();
VSF_LINUX_ASSERT(process != NULL);
#if VSF_LINUX_USE_VFORK == ENABLED
if (process->is_vforking) {
if ((process != NULL) && (process->is_vforking)) {
process = process->vfork_child;
}
#endif
Expand Down

0 comments on commit 3f5d324

Please sign in to comment.