mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix fdopen setting FD_CLOEXEC wrongly.
This commit is contained in:
parent
783c1092ff
commit
228bf52b49
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ extern "C" DIR* fdopendir(int fd)
|
|||
|
||||
int old_dflags = fcntl(fd, F_GETFD);
|
||||
if ( 0 <= old_dflags )
|
||||
fcntl(fd, F_SETFD, old_dflags | O_CLOEXEC);
|
||||
fcntl(fd, F_SETFD, old_dflags | FD_CLOEXEC);
|
||||
|
||||
info->fd = fd;
|
||||
|
||||
|
|
Loading…
Reference in a new issue