bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33154: 27.0.50; create_process on Darwin should not invoke setsid()


From: Paul Eggert
Subject: bug#33154: 27.0.50; create_process on Darwin should not invoke setsid() after vfork() [PATCH]
Date: Wed, 7 Nov 2018 07:40:36 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

Filipp Gunbin wrote:
Are you sure we can remove that 3rd place?  It dates back to initial
revision from 1992.  And I can't tell why it's there and what it does.

It's there to dissociate the controlling tty. And it's not removed, it's just moved into the previous call to dissociate_controlling_tty (when setsid fails).

It is a little disconcerting to change code this old. But we needn't worry about how it would run on 4.3BSD, only on current platforms. On most current platforms setsid suffices because POSIX says it should; on Darwin (and perhaps a few other BSD-derived systems) Emacs can fall back on TIOCNOTTY when setsid fails; and the proposed code does this more systematically than the current master does.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]