mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-15 13:31:54 +00:00
Add close-on-exec flag for file descriptors.
I was surprised to find that dup()'ed fds don't share the close-on-exec flag. That means it has to be stored separately from the FileDescriptor object.
This commit is contained in:
parent
19b9401487
commit
97c799576a
Notes:
sideshowbarker
2024-07-19 16:10:49 +09:00
Author: https://github.com/awesomekling
Commit: 97c799576a
10 changed files with 74 additions and 35 deletions
|
@ -51,7 +51,6 @@ RetainPtr<FileDescriptor> FileDescriptor::clone()
|
|||
descriptor->m_currentOffset = m_currentOffset;
|
||||
#ifdef SERENITY
|
||||
descriptor->m_isBlocking = m_isBlocking;
|
||||
descriptor->m_fd_flags = m_fd_flags;
|
||||
descriptor->m_file_flags = m_file_flags;
|
||||
#endif
|
||||
return descriptor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue