Re: Memory leak in subshell + read before bash 4.4

2017-11-04 Thread Chet Ramey
On 11/3/17 9:48 PM, Adrien Mahieux wrote: > On Sat, Nov 4, 2017 at 2:21 AM, Chet Ramey wrote: >> If it's that, it's not a leak. It's bash-4.3 keeping exit statuses for the >> last CHILD_MAX processes. Bash-4.4 restricts that to the last CHILD_MAX >> asynchronous background processes, with accompa

Re: Memory leak in subshell + read before bash 4.4

2017-11-03 Thread Adrien Mahieux
On Sat, Nov 4, 2017 at 2:21 AM, Chet Ramey wrote: > If it's that, it's not a leak. It's bash-4.3 keeping exit statuses for the > last CHILD_MAX processes. Bash-4.4 restricts that to the last CHILD_MAX > asynchronous background processes, with accompanying loss of functionality. Ok, seems indeed

Re: Memory leak in subshell + read before bash 4.4

2017-11-03 Thread Chet Ramey
On 11/3/17 9:18 PM, Adrien Mahieux wrote: > On Sat, Nov 4, 2017 at 1:18 AM, Chet Ramey wrote: >> On 11/3/17 6:01 PM, Adrien Mahieux wrote: >>> Hello, >>> >>> I think I've found a bug in the loop management. Maybe it's an >>> expected behavior (didn't find any related topic on the manpages) but >>>

Re: Memory leak in subshell + read before bash 4.4

2017-11-03 Thread Adrien Mahieux
On Sat, Nov 4, 2017 at 1:18 AM, Chet Ramey wrote: > On 11/3/17 6:01 PM, Adrien Mahieux wrote: >> Hello, >> >> I think I've found a bug in the loop management. Maybe it's an >> expected behavior (didn't find any related topic on the manpages) but >> it's annoying in long-running scripts. >> >> The

Re: Memory leak in subshell + read before bash 4.4

2017-11-03 Thread Chet Ramey
On 11/3/17 6:01 PM, Adrien Mahieux wrote: > Hello, > > I think I've found a bug in the loop management. Maybe it's an > expected behavior (didn't find any related topic on the manpages) but > it's annoying in long-running scripts. > > The leak is triggered by this idiom (wether or not jobcontrol