Linux

What is the return value of fork()?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

  • On success, the PID of the child process in parent and 0 in child process
    • On error, -1 in the parent