Subject: Re: bug#1107: #1107 - 23.0.60; Emacs --daemon crashes when emacsclient tries to establish a connection on OS X - Emacs bug report logs

From: Adrian Robert <[email-masked]>
Date: Wed, 10 Dec 2008 10:27:20 -0500

On Dec 10, 2008, at 1:58 AM, Dan Nicolaescu wrote:

> Is this a problem just for MacOSX or also for GNUStep?

Actually just OS X.  The ifdefs should be changed to NS_IMPL_COCOA.

> All these #ifdefs are very ugly, IMHO it would be better to  
> separate the
> NS functionality in a different function, that way only a single  
> #ifdef
> is needed here.

I agree, but did not see an easy way to do so given the way the  
daemon initialization is spread over two processes and several  
functions.  Another idea I thought of would be to simply not fork,  
and just require OS X users to run "emacs --daemon &".