Subject: bug#1058: 23.0.60; emacs --daemon should not return until socket is ready

From: Dan Nicolaescu <[email-masked]>
Date: Wed, 1 Oct 2008 16:32:19 -0700 (PDT)

Romain Francoise <[email-masked]> writes:

  > Hi Dan, Trent,
  > 
  > Dan Nicolaescu <[email-masked]> writes:
  > 
  > > Just curious, what do you get if you do:
  > > emacs -Q --daemon; while ! ls /tmp/emacs1187/; do sleep 1; done
  > 
  > Yes, the delay is caused by my change to load the init file before
  > starting the server.
  > 
  > > Unfortunately ATM I don't see an easy way to do that.
  > > Ideas/patches are certainly welcome.
  > 
  > It's easy to do, but not very clean.  WDYT?

It would be much better if this could be done without a state changing
function callable from elisp.