This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
vfork / setsid interaction
- From: Joe Buehler <jbuehler at hekimian dot com>
- To: Cygwin Developers <cygwin-developers at cygwin dot com>
- Date: Tue, 13 Aug 2002 10:15:25 -0400
- Subject: vfork / setsid interaction
- Organization: Spirent Communications
- Reply-to: joseph dot buehler at spirentcom dot com
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