close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23462 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -63,8 +63,10 @@ get_device_fd(int flags)
|
|||||||
|
|
||||||
for(p = rnd_devices; *p; p++) {
|
for(p = rnd_devices; *p; p++) {
|
||||||
int fd = open(*p, flags | O_NDELAY);
|
int fd = open(*p, flags | O_NDELAY);
|
||||||
if(fd >= 0)
|
if(fd >= 0) {
|
||||||
|
rk_cloexec(fd);
|
||||||
return fd;
|
return fd;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user