Skip to content

Commit

Permalink
lib/vfscore: Change the call of dup2() to uk_syscall_r_dup2()
Browse files Browse the repository at this point in the history
Signed-off-by: Dragos Iulian Argint <dragosargint21@gmail.com>
  • Loading branch information
dragosargint committed Apr 21, 2022
1 parent f6c7b4d commit 9130544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vfscore/stdio.c
Expand Up @@ -214,8 +214,8 @@ void init_stdio(void)
fd = vfscore_alloc_fd();
UK_ASSERT(fd == 0);
vfscore_install_fd(0, &stdio_file);
if (dup2(0, 1) != 1)
if (uk_syscall_r_dup2(0, 1) != 1)
uk_pr_err("failed to dup to stdin\n");
if (dup2(0, 2) != 2)
if (uk_syscall_r_dup2(0, 2) != 2)
uk_pr_err("failed to dup to stderr\n");
}

0 comments on commit 9130544

Please sign in to comment.