Skip to content

Commit 3b957d6

Browse files
authored
Remove musl patch from dup3.c. NFC (#26723)
We no longer define `SYS_dup2` in emscripten as of #15418 so this patch is no longer doing anything useful.
1 parent c5059e9 commit 3b957d6

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • system/lib/libc/musl/src/unistd

system/lib/libc/musl/src/unistd/dup3.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ int __dup3(int old, int new, int flags)
1515
if (flags & ~O_CLOEXEC) return __syscall_ret(-EINVAL);
1616
}
1717
while ((r=__syscall(SYS_dup2, old, new))==-EBUSY);
18-
#ifndef __EMSCRIPTEN__ // CLOEXEC makes no sense for a single process
1918
if (r >= 0 && (flags & O_CLOEXEC))
2019
__syscall(SYS_fcntl, new, F_SETFD, FD_CLOEXEC);
21-
#endif
2220
#else
2321
while ((r=__syscall(SYS_dup3, old, new, flags))==-EBUSY);
2422
#endif

0 commit comments

Comments
 (0)