Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Closes #106] Hold Arc<SpinLock<OpenedFileTable>> instead of just SpinLock<> #157

Merged

Conversation

michalfita
Copy link
Contributor

Description

Part of preparation to support the whole clone3() syscall. This change allows threads to keep access to the shared table of opened files (in #88 and #115), but for now it retains just cloning the table into new Arc<SpinLock<>> on fork().

Pre-Submission Checklist

When you submit a PR, please make sure your PR satisfies the following checklist:

  • I assert this contribution was authored by me.
  • I license this contribution under the license of this project.
  • The PR title describes your changes briefly and uses the present tense, without a trailing full stop.
  • The PR description describes the reason why we need the change.
  • This is an isolated change. No multiple changes and no unrelated changes are included.
  • Fixed all cargo clippy warnings.
  • Applied rustfmt.

@nuta nuta merged commit a47e12e into nuta:main Mar 25, 2022
@nuta
Copy link
Owner

nuta commented Mar 25, 2022

Merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants