Repository navigation
[RFC] Set O_CLOEXEC - #9174
Merged
Merged
[RFC] Set O_CLOEXEC#9174
Conversation
Since clickhouse allows to execute user-specified command (i.e. for dictionary loading), it is better not to expose them. But there is something left for now: - 10 -> socket:[14422712] - 11 -> socket:[14422714] - 12 -> anon_inode:[eventpoll] - 13 -> anon_inode:[eventpoll] - 14 -> anon_inode:[eventpoll] - 15 -> socket:[14426310] - 16 -> anon_inode:[eventpoll] - 3 -> /proc/2739071/fd - 6 -> socket:[14422708] - 9 -> socket:[14422710] And most of these (eventpoll) went from poco, for which O_CLOEXEC cannot be passed.
Member
|
We can also close files in a loop after |
Member
Author
Indeed, and not only tricky, but also very slow |
azat
added a commit
to azat-ch/poco
that referenced
this pull request
Mar 13, 2021
Follow-up for: ClickHouse/ClickHouse#9174
azat
added a commit
to azat-ch/poco
that referenced
this pull request
Mar 13, 2021
I've tried to do a normal interface, with ability to set it optinally, but it is not that trivial, anyway creating socket w/o SOCK_CLOEXEC is almost always an error (it is not a pipe/socketpair that may be used to shared data between child and parent). Follow-up for: ClickHouse/ClickHouse#9174
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Since clickhouse allows to execute user-specified command (i.e.
for dictionary loading), it is better not to expose them.
But there is something left for now:
And most of these (
eventpoll) went frompoco, for whichO_CLOEXECcannotbe passed.