From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 09:27:46 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9BAB37B401 for ; Wed, 11 Jun 2003 09:27:46 -0700 (PDT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A58E43F3F for ; Wed, 11 Jun 2003 09:27:45 -0700 (PDT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.12.3/8.12.3) with ESMTP id h5BGQgvG027307; Wed, 11 Jun 2003 13:26:42 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Wed, 11 Jun 2003 13:26:42 -0300 (ART) From: Fernando Gleiser To: "Sharma, Tarun" In-Reply-To: <4FB6F321746ED4118A0500508BD8A240021841AA@cinthol.india.ipolicynet.com> Message-ID: <20030611132250.D26278-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-109.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,USER_IN_WHITELIST version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) cc: freebsd-questions@freebsd.org Subject: Re: Fork giving error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 16:27:47 -0000 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