This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author quick-b
Recipients quick-b
Date 2016-04-10.21:58:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460325501.58.0.225914662536.issue26732@psf.upfronthosting.co.za>
In-reply-to
Content
The sentinel creates a named pipe, but the parent's end of the pipe is inherited by subsequently created children.  

import multiprocessing,signal,sys
def sproc(x): signal.pause()
for each in range(int(sys.argv[1])):
  multiprocessing.Process(target=sproc, args=(each,)).start()
signal.pause()

Running the above on Linux with varying numbers of child processes (expressed as the argument to the above) and using techniques like "$ sudo ls /proc/NNNN/fd" it is possible to see an ever growing number of pipe connections for subsequent children.
History
Date User Action Args
2016-04-10 21:58:21quick-bsetrecipients: + quick-b
2016-04-10 21:58:21quick-bsetmessageid: <1460325501.58.0.225914662536.issue26732@psf.upfronthosting.co.za>
2016-04-10 21:58:21quick-blinkissue26732 messages
2016-04-10 21:58:21quick-bcreate