Date: Wed, 11 Jun 2003 13:26:42 -0300 (ART) From: Fernando Gleiser <fgleiser@cactus.fi.uba.ar> To: "Sharma, Tarun" <tsharma@iPolicyNet.COM> Cc: freebsd-questions@freebsd.org Subject: Re: Fork giving error Message-ID: <20030611132250.D26278-100000@cactus.fi.uba.ar> In-Reply-To: <4FB6F321746ED4118A0500508BD8A240021841AA@cinthol.india.ipolicynet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 11 Jun 2003, Sharma, Tarun wrote: > while running a program I found that fork was giving some error. Can anybody > tell me why fork can give error and whats the solution for not getting this > problem ? If any syscall fails, you should look at errno(2) to see why it failed. In the fork case, it fails because either there is no memory for the new process (ENOMEM) or you've reached the maximum number of processes (EAGAIN). But we can't tell why it fails without looking at the actual error. Fer
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030611132250.D26278-100000>