"Return value in the master process is always 0"
You mixed that up. Return value in the original process ("master") is the PID of the new process, the new process gets 0 as return value.
Ref manpages.ubuntu.com/manpages/bioni...
Yeah. You are right. I mixed up example code and blindly continued description based on it :D Thanks. Post Updated.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
"Return value in the master process is always 0"
You mixed that up. Return value in the original process ("master") is the PID of the new process, the new process gets 0 as return value.
Ref manpages.ubuntu.com/manpages/bioni...
Yeah. You are right. I mixed up example code and blindly continued description based on it :D Thanks. Post Updated.