fix some more O_CLOEXEC/SOCK_CLOEXEC issues
This commit is contained in:
parent
3609e019f3
commit
f2d08cf755
4 changed files with 5 additions and 7 deletions
|
|
@ -4,7 +4,7 @@ FILE *__fopen_rb_ca(const char *filename, FILE *f, unsigned char *buf, size_t le
|
|||
{
|
||||
memset(f, 0, sizeof *f);
|
||||
|
||||
f->fd = syscall(SYS_open, filename, O_RDONLY|O_LARGEFILE, 0);
|
||||
f->fd = syscall(SYS_open, filename, O_RDONLY|O_LARGEFILE|O_CLOEXEC, 0);
|
||||
if (f->fd < 0) return 0;
|
||||
|
||||
f->flags = F_NOWR | F_PERM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue