Re: memory leak in bash only during boot up in Bash-3.2.48

2018-12-21 Thread Chet Ramey
On 12/19/18 12:54 AM, abhishpaliwal wrote: > create a shell script from below given code. name it testing.sh. > > #!/bin/bash > logger "Started testing" > while(true); do > while (true); do ls > /dev/null ; done > done > > Steps. > # chmod 755 /root/testing.sh > modify any /etc/init.d/

Re: Memory continusely increase

2018-12-21 Thread Chet Ramey
On 12/19/18 1:10 AM, jake wrote: > Hi all, > > I did a test about run a bash scriplt never quit,but met a memory usage > issue that cause used memory continuous increase. > This issue was present in bash-3.2.x, bash-4.0.x, bash-4.1.x, bash-4.2.x, > bash-4.3.x. However, This issue was disappeared i

Re: write() not retried after EINTR in printf and echo

2018-12-21 Thread Chet Ramey
On 12/19/18 10:15 PM, Bize Ma wrote: > Chet Ramey (mailto:chet.ra...@case.edu>>) wrote: > > And yet, when you look at the source, the signal handlers are installed > with SA_RESTART. For example, > >   > > #  if defined (SIGWINCH) >   act.sa_flags = (sig == SIGWINCH) ? SA_RESTART