This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: status access violation
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 11 Jan 2002 14:10:38 -0500
- Subject: Re: status access violation
- References: <3C3ED769.301AB428@adm.unipi.it>
- Reply-to: cygwin at cygwin dot com
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/