Re: Some kind of file descriptor overflow

2014-06-16 Thread Chet Ramey
On 6/13/14, 2:56 PM, Jorge Sivil wrote: > Yes, sorry. The minimum reproduceable code is: > > #!/bin/bash > function something() { > while true > do > while read VAR > do > dummyvar="a" > done < <(find "/run/shm/debora" -type f | sort) > sleep 3 > done > } > something &

Re: Some kind of file descriptor overflow

2014-06-13 Thread Pierre Gaston
On Fri, Jun 13, 2014 at 9:56 PM, Jorge Sivil wrote: > Yes, sorry. The minimum reproduceable code is: > > #!/bin/bash > function something() { > while true > do > while read VAR > do > dummyvar="a" > done < <(find "/run/shm/debora" -type f | sort) > sleep 3 > done > } >

Re: Some kind of file descriptor overflow

2014-06-13 Thread Jorge Sivil
Yes, sorry. The minimum reproduceable code is: #!/bin/bash function something() { while true do while read VAR do dummyvar="a" done < <(find "/run/shm/debora" -type f | sort) sleep 3 done } something & Which fails with many pipes fd open. Changing the While feed to th

Re: Some kind of file descriptor overflow

2014-06-13 Thread Eduardo A . Bustamante López
On Fri, Jun 13, 2014 at 09:52:49AM -0300, Jorge Sivil wrote: > The script is in the answer: > > http://stackoverflow.com/questions/24192459/bash-running-out-of-file-descriptors Can't you reduce the script to a minimum reproducible case? To be honest, it smells like a scripting error and not a bug,