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

Fix error when unpickling an unnamed temporary file in a different process #494

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leogama
Copy link
Contributor

@leogama leogama commented Jun 1, 2022

Unnamed (Unix only) temporary files generate a "Bad file descriptor" when unpickled in a different process/machine.
This should fix #380, #493.

@leogama
Copy link
Contributor Author

leogama commented Jun 1, 2022

Work in progress, not tested.

Missing a way to recreate the temporary file as an unnamed one, and not a file handle to /proc/{pid}/fd/{fileno}. Plus unit tests.

@mmckerns mmckerns added this to the dill-0.3.6 milestone Jun 8, 2022
@mmckerns mmckerns removed this from the dill-0.3.6 milestone Jun 20, 2022
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.

OSError: [Errno 9] Bad file descriptor
2 participants