Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com Date: Sun, 18 Aug 2002 01:53:28 -0400 From: Christopher Faylor To: cygwin-developers AT cygwin DOT com Subject: Re: vfork / setsid interaction Message-ID: <20020818055328.GA3361@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: cygwin-developers AT cygwin DOT com References: <1029248291 DOT 12157 DOT 96 DOT camel AT lifelesswks> <3D591779 DOT 6030906 AT hekimian DOT com> <20020813165230 DOT H17250 AT cygbert DOT vinschen DOT de> <20020813153445 DOT GI9193 AT redhat DOT com> <20020813160238 DOT GA11009 AT redhat DOT com> <3D594F9E DOT 1090609 AT hekimian DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D594F9E.1090609@hekimian.com> User-Agent: Mutt/1.3.23.1i On Tue, Aug 13, 2002 at 02:27:42PM -0400, Joe Buehler wrote: >Christopher Faylor wrote: > >>Btw, if someone (Joe?) can provide a simple test case demonstrating the >>problem I'll be happy to fix it. > >It's easy to demonstrate; try this: Thanks for the test case. I've checked in a fix but it is pretty ugly. I don't know of any other way to accomplish what is required for setsid other than to do a fork() when setsid is called in a "vfork" condition. So, that's what I did. I noticed a few other bugs with vfork and fixed them. I also implemented getsid(). I can't believe that it has been missing all of this time. Your test case seems happier (if slower) now. I'm rebuilding YA snapshot. cgf