On Fri, Apr 18, 2003 at 03:48:39PM -0600, [EMAIL PROTECTED] wrote:
> pid = fork(); //split execution
>
> if(pid == 0) //child process
> {
> printf("Entering child process!\n");
> exit(0);
> }
> printf("Entering parent process!\n");
It's probably worth checking for a -1 return from fork() and printing out
strerror(errno) to find out what the error is. According to the man page,
only memory errors are possible, but there are other things like ulimits
that could cause problems too.
Pete
--
Pete Ryland
http://pdr.cx/