Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!mintaka!olivea!samsung!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: fork() is returning > 0 ??? Message-ID: <14412@smoke.brl.mil> Date: 10 Nov 90 05:32:02 GMT References: <2691@ux.acs.umn.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 14 In article <2691@ux.acs.umn.edu> eric@ux.acs.umn.edu (Merlinus Ambrosius) writes: >Can you explain why in this piece of code, fork() is returning a value >other than -1 or 0? Because fork() returns: -1 if unable to create another process 0 in the newly created process branch the process id of the new process, in the parent branch By the way, this is a UNIX-specific question, not a C language question. >... any ideas on what could be going on here would be wonderful. I would think they would be necessary.