[PATCH] Fix overflow in jobs

2017-12-07 Thread Natanael Copa
This fixes an issue with bash hanging if user process rlimit is too high. To reproduce: ulimit -u 9223372036854775807 bash -c 'sleep 1 & wait $!' --- jobs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs.c b/jobs.c index fc966036..d203db27 100644 --- a/jobs.c +++ b/

Bash leaks memory when doing function calls while reading from subshell as stdin

2017-12-07 Thread Øyvind Hvidsten
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACK

Bash leaks memory when doing function calls while reading from subshell as stdin

2017-12-07 Thread Øyvind Hvidsten
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACK