Commit ec1ba47d authored by Denis Bilenko's avatar Denis Bilenko

threadpool: remove warning

it's not always correct. for example, Popen immediatelly execs another process,
so no Python objects are actually leaked.
parent 337efb5b
......@@ -93,11 +93,9 @@ class ThreadPool(object):
pid = os.getpid()
if pid != self.pid:
self.pid = pid
if self._size > 0:
# Do not mix fork() and threads; since fork() only copies one thread
# all objects referenced by other threads has refcount that will never
# go down to 0.
sys.stderr.write("WARNING: Mixing fork() and threads detected; memory leaked.\n")
# Do not mix fork() and threads; since fork() only copies one thread
# all objects referenced by other threads has refcount that will never
# go down to 0.
self._init(self._maxsize)
def join(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment