News for hackers. Stuff that matters.
Re:Understanding how killall works using strace by axylone on Sunday December 22, 2013 @11:16PM (#6953077)
What are the anonymous 4096 byte allocations before every read? I would think that killall would read /proc/{pid}/stat directly into a stack buffer, especially if the reads are only 1024 bytes.
Re:Understanding how killall works using strace by nly on Monday December 23, 2013 @04:15AM (#6953655)
I had a quick look. There are 6 calls to malloc in the killall program and several calls to functions like asprintf which will allocate. See my other post for source.