We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0a600f commit 9f9489bCopy full SHA for 9f9489b
src/libstd/sys/redox/fs.rs
@@ -337,7 +337,7 @@ impl DirBuilder {
337
}
338
339
pub fn mkdir(&self, p: &Path) -> io::Result<()> {
340
- let flags = syscall::O_CREAT | syscall::O_DIRECTORY | syscall::O_EXCL;
+ let flags = syscall::O_CREAT | syscall::O_CLOEXEC | syscall::O_DIRECTORY | syscall::O_EXCL;
341
let fd = cvt(syscall::open(p.to_str().unwrap(), flags | (self.mode as usize & 0o777)))?;
342
let _ = syscall::close(fd);
343
Ok(())
0 commit comments