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 Message-ID: <3D59147D.3080605@hekimian.com> Date: Tue, 13 Aug 2002 10:15:25 -0400 X-Sybari-Trust: 9e89ea9a b923d9bf 4738785c 00000109 From: Joe Buehler Reply-To: joseph DOT buehler AT spirentcom DOT com Organization: Spirent Communications User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cygwin Developers Subject: vfork / setsid interaction Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit One of the problems in the GNU emacs port was an interaction between setsid() and vfork(). If I understand vfork() correctly, the pid does not change in the child. This causes setsid() to fail in the child if the parent is a process group leader. This was preventing emacs children from changing their controlling tty. I assume this is not "correct" behavior because this is the standard way that emacs does things on other platforms. Joe Buehler