Message263153
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. |
|
Date |
User |
Action |
Args |
2016-04-10 21:58:21 | quick-b | set | recipients:
+ quick-b |
2016-04-10 21:58:21 | quick-b | set | messageid: <1460325501.58.0.225914662536.issue26732@psf.upfronthosting.co.za> |
2016-04-10 21:58:21 | quick-b | link | issue26732 messages |
2016-04-10 21:58:21 | quick-b | create | |
|