Re: Why does ctrl-c behave differently for builtin sleep in a subshell?

2018-12-25 Thread Peng Yu
If I add a command after the builtin sleep, then the EXIT trap will be triggered upon typing ctrl-C. If the last command is removed, then the EXIT trap will not be triggered upon typing ctrl-C. Is this a bug in the built-in sleep? I am trying to inspect the C code of sleep builtin, but it is ver

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

2018-12-25 Thread Bize Ma
Chet Ramey () wrote: > On 12/19/18 10:15 PM, Bize Ma wrote: > > Ah, now we're moving the goalposts. No, that is not the intent. I merely failed to correctly convey the perception that others have of your code: https://unix.stackexchange.com/a/487260/265604 And, having failed, I am trying aga

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

2018-12-25 Thread Eduardo Bustamante
On Tue, Dec 25, 2018 at 12:01 PM Bize Ma wrote: (...) > But, probably, I should just not inform you of what others think given your > upfront rejection to any (constructive) criticism. (..) > Do as you wish, we will still be able to form our own opinion about buggy > code. This is not constructiv

Re: Memory continusely increase

2018-12-25 Thread Eduardo A . Bustamante López
On Mon, Dec 24, 2018 at 10:51:00AM +0800, chen liu wrote: > Chet Ramey 于2018年12月22日周六 上午12:51写道: (...) > > What is the hard limit on the number of processes for a process started in > > this environment? (The value of `ulimit -n'.) Ah, interesting. Thanks for the pointer Chet. (...) > Below is a