Skip to content

Move os.getpid() inside _MmapedValue (#130) - #156

Closed
megabuz wants to merge 1 commit into
prometheus:masterfrom
megabuz:master
Closed

megabuz wants to merge 1 commit into
prometheus:masterfrom
megabuz:master

Conversation

@megabuz

@megabuz megabuz commented Apr 13, 2017

Copy link
Copy Markdown

Related to issue #130
uwsgi imports all python script in master process and after that forks children, so we need move os.getpid() call inside function

@megabuz megabuz changed the title Move os.getpid() inside _MmapedValue Move os.getpid() inside _MmapedValue (#130) Apr 13, 2017
@brian-brazil

Copy link
Copy Markdown
Contributor

We don't currently support that mode of operation, each child needs to be fork+execd. So this won't work.

@megabuz

megabuz commented Apr 13, 2017

Copy link
Copy Markdown
Author

It should work in both ways

@megabuz

megabuz commented Apr 13, 2017

Copy link
Copy Markdown
Author

Do you mean that whole module will not work? Do you have some vars/classes that need to init in child and not in master process?

@brian-brazil

Copy link
Copy Markdown
Contributor

Yes, it depends on the child initting separately.

@brian-brazil

Copy link
Copy Markdown
Contributor

Closing in favour of #169

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