mirror of
https://github.com/fluencelabs/musl
synced 2025-07-03 16:41:59 +00:00
fix some more O_CLOEXEC/SOCK_CLOEXEC issues
This commit is contained in:
@ -19,7 +19,7 @@ char *realpath(const char *restrict filename, char *restrict resolved)
|
||||
return 0;
|
||||
}
|
||||
|
||||
fd = open(filename, O_RDONLY|O_NONBLOCK);
|
||||
fd = open(filename, O_RDONLY|O_NONBLOCK|O_CLOEXEC);
|
||||
if (fd < 0) return 0;
|
||||
snprintf(buf, sizeof buf, "/proc/self/fd/%d", fd);
|
||||
|
||||
|
Reference in New Issue
Block a user