From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18996 invoked by alias); 11 Jan 2002 19:10:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 18920 invoked from network); 11 Jan 2002 19:10:27 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (12.107.208.154) by sources.redhat.com with SMTP; 11 Jan 2002 19:10:27 -0000 Received: from cgf.cipe.redhat.com (dhcpd165.meridian.redhat.com [172.16.47.165]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g0BJAMw16896 for ; Fri, 11 Jan 2002 14:10:23 -0500 Received: (from cgf@localhost) by cgf.cipe.redhat.com (8.11.6/8.8.7) id g0BJAcj31493 for cygwin@cygwin.com; Fri, 11 Jan 2002 14:10:38 -0500 Date: Fri, 11 Jan 2002 11:43:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: status access violation Message-ID: <20020111191038.GF30896@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <3C3ED769.301AB428@adm.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C3ED769.301AB428@adm.unipi.it> User-Agent: Mutt/1.3.23.1i X-SW-Source: 2002-01/txt/msg00819.txt.bz2 On Fri, Jan 11, 2002 at 01:15:37PM +0100, Enrico Bernardini wrote: >My program has a strange behavior. It is like this example: >main >{ >... >setuid(client_uid); >... > >switch(fork()) >case default: >... >break; > >case 0: /* child */ >... >execle(...); >break; >} > >well, it works but when I remove a stupid unrelated piece of code >(setuid(client_uid);) >[snip] >The process forks but it crashes during the execle call. > >Can anybody please help me? I'll try. I need an actual test case, though. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/