We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d5e182 commit b681e60Copy full SHA for b681e60
prometheus_client/core.py
@@ -395,13 +395,7 @@ def close(self):
395
def _MultiProcessValue(_pidFunc=os.getpid):
396
files = {}
397
values = []
398
-
399
- # pid needs to be evaluated here in a master process
400
- # because some metrics can be initialized before fork and inhereted by childs
401
- # as a result childs don't have a way to detect that files were opened
402
- # by another process and will write to them.
403
pid = {'value': _pidFunc()}
404
405
# Use a single global lock when in multi-processing mode
406
# as we presume this means there is no threading going on.
407
# This avoids the need to also have mutexes in __MmapDict.
0 commit comments