Skip to content

Infinite loop with multiprocessing #950

Discussion options

You must be logged in to vote

Unfortunately, this won't work, at least not out of the box, due to the limitations of pyfakefs. Multiprocessing is one of the modules not playing nice with pyfakefs due to the use of system C functions to access the file system. In this case, it uses posixshmem, which is a C module, to access the shared memory. This will work in the real filesystem, so either the file is not found, or if the file exists there, a real file descriptor is returned, which is not found in the fake filesystem.

I could not reproduce the inifinite loop so far, but I got another error related to the mentioned problem. Currently, I don't have a solution for this (other than patching it away).

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by samtygier-stfc
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #949 on February 16, 2024 07:46.