diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-18 22:20:01 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-18 22:20:01 +0200 |
commit | 9ef06e2117fbf7aa34e66c95b4935ed768ac8559 (patch) | |
tree | 729f7bf20766966abddc6ab707527fe521d252fe /LibC | |
parent | 6f9df89c9236ee727d7a2f410c686a7247c74d92 (diff) | |
download | serenity-9ef06e2117fbf7aa34e66c95b4935ed768ac8559.zip |
LibC: stddbg should be opened with O_CLOEXEC.
Diffstat (limited to 'LibC')
-rw-r--r-- | LibC/stdio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibC/stdio.cpp b/LibC/stdio.cpp index feb51df771..25096819d3 100644 --- a/LibC/stdio.cpp +++ b/LibC/stdio.cpp @@ -44,7 +44,7 @@ void __stdio_init() init_FILE(*stdin, 0, isatty(0) ? _IOLBF : _IOFBF); init_FILE(*stdout, 1, isatty(1) ? _IOLBF : _IOFBF); init_FILE(*stderr, 2, _IONBF); - int fd = open("/dev/debuglog", O_WRONLY); + int fd = open("/dev/debuglog", O_WRONLY | O_CLOEXEC); if (fd < 0) { perror("open /dev/debuglog"); ASSERT_NOT_REACHED(); |