Open ezamriy opened 5 years ago
I've noticed that a pipeline of 3 or more commands leaks Unix sockets until a process is crashed with "Too many open files" error.
Steps to reproduce:
import plumbum cat = plumbum.local['cat'] grep = plumbum.local['grep'] while True: print (cat['/etc/passwd'] | grep['root'] | cat)()
ls -la /proc/${PID}/fd | wc -l
Both 1.6.6 and 1.6.7 versions are affected.
The issue is not reproducible with 2-command pipelines.
+1 same here
+1. plumbum==1.6.8
A workaround can be: local['bash']['-c', 'cat /etc/passwd | grep "root" | cat']()
local['bash']['-c', 'cat /etc/passwd | grep "root" | cat']()
I've noticed that a pipeline of 3 or more commands leaks Unix sockets until a process is crashed with "Too many open files" error.
Steps to reproduce:
Both 1.6.6 and 1.6.7 versions are affected.
The issue is not reproducible with 2-command pipelines.