6331 execve("./a.out", ["./a.out"], [/* 22 vars */]) = 0
6331 brk(0) = 0x601000
What does 6331 mean here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
6331in your example is the process id; it comes in handy when youstrace(1)with the-for-Fflags a program that spawns other programs. For a quick example, try this:(There’s nothing magical about that initscript, I just figured it’d be a script that you have on your system.)
The
/tmp/outfile will show you the output from several processes, and each will be prefixed with its pid:You can see the creation of the new process with the
clone(2)call (which is how Linux has implementedfork(), in newer versions of the kernel).