Date: Tue, 21 Nov 2000 10:27:49 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: PAULO_MAXIMILIANO_VASQUEZ_BRICHETTI DOT REPSOL AT email DOT ypf DOT com DOT ar cc: djgpp AT delorie DOT com Subject: Re: function fork() In-Reply-To: <0325699D.00641DA2.00@email.ypf.com.ar> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 20 Nov 2000 PAULO_MAXIMILIANO_VASQUEZ_BRICHETTI DOT REPSOL AT email DOT ypf DOT com DOT ar wrote: > I've some problem with function fork. In the code below the fork call always > give -1. Could someone tell me if i'm doing something wrong? The function `fork' always fails in DJGPP. You need to replace it with a call to one of the functions in the spawn* family.