PMU_PIPE_MAP = {}
PIPE= 'tmp/%s.pipe' % hostname
if not os.path.exists(PIPE):
os.mkfifo(PIPE)
PMU_PIPE_MAP[hostname] = os.open(PIPE, os.O_WRONLY)
Im trying to open n
pipes. In order to keep track of them I'd like to store them somehow - like in a dictionary - I thought that the above code should work but it freezes during execution. Any suggestions?
This does work however:
pipein = os.open(PIPE, os.O_WRONLY)