Skip to content

Remove handle field from LegacyDescriptor#2240

Merged
stevenengler merged 11 commits intoshadow:mainfrom
stevenengler:remove-desc-handle
Jun 27, 2022
Merged

Remove handle field from LegacyDescriptor#2240
stevenengler merged 11 commits intoshadow:mainfrom
stevenengler:remove-desc-handle

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

The LegacyDescriptor struct combines the file descriptor and file description into a single object by combining the fd handle and CLOEXEC flag with the underlying file object. This forces them to have a 1:1 relationship, where they should have a n:1 relationship for n>=0 (any number of file descriptors for a file description).

This PR is a step towards removing this 1:1 relationship and towards supporting #1648. A follow-up PR will allow multiple fds for a LegacyDescriptor.

@stevenengler stevenengler added the Component: Main Composing the core Shadow executable label Jun 24, 2022
@stevenengler stevenengler requested a review from sporksmith June 24, 2022 20:20
@stevenengler stevenengler self-assigned this Jun 24, 2022
@stevenengler stevenengler enabled auto-merge June 27, 2022 21:48
@stevenengler stevenengler merged commit 9f6e68a into shadow:main Jun 27, 2022
@stevenengler stevenengler deleted the remove-desc-handle branch June 27, 2022 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants