Forking multiple children in C and handling them