From owner-freebsd-hackers Sat Jan 11 12:33: 3 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32FC037C08F for ; Sat, 11 Jan 2003 12:32:58 -0800 (PST) Received: from mel-rto6.wanadoo.fr (smtp-out-6.wanadoo.fr [193.252.19.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39FE443F13 for ; Sat, 11 Jan 2003 12:32:57 -0800 (PST) (envelope-from rmkml@wanadoo.fr) Received: from mel-rta9.wanadoo.fr (193.252.19.69) by mel-rto6.wanadoo.fr (6.7.015) id 3E0C343F00889F31; Sat, 11 Jan 2003 21:32:55 +0100 Received: from wanadoo.fr (81.48.102.57) by mel-rta9.wanadoo.fr (6.7.015) id 3E075B46008C615C; Sat, 11 Jan 2003 21:32:55 +0100 Message-ID: <3E208017.F404526F@wanadoo.fr> Date: Sat, 11 Jan 2003 21:35:35 +0100 From: rmkml X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.21-pre2 i686) X-Accept-Language: en MIME-Version: 1.0 To: Ferruccio Vitale Cc: hackers@FreeBSD.org Subject: Re: vfork/execve programming trouble References: <3E1608CB.E8BCCA90@wanadoo.fr> <20030110112641.1ebf0a5e.ferruccio.vitale@tin.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Do you have the same pbs, or can't you reproduce the same blocking ? In my program, I use execve, In your program, you use execv, Do you think can make a difference ? Why do you catch a SIGCHLD in sig_thread too waitpid, and you waitpid too in exec_thread ? Why do you use waitpid twice ? Thanks a lot. Regards Ferruccio Vitale wrote: > Hi, > > I tried to reproduce your problem and, after a lot of effort, I think I found something interesting (take a look at code attached). > Regards, > > Ferruccio > > Note: SIGCHLD will never reach signal thread!! I think that waitpid locks this signal. > > ------------------------------------------------------------------------ > Name: prova3.c > prova3.c Type: unspecified type (application/octet-stream) > Encoding: base64 > > Part 1.2Type: application/pgp-signature To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message