[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#1058: 23.0.60; emacs --daemon should not return until socket is read
From: |
Dan Nicolaescu |
Subject: |
bug#1058: 23.0.60; emacs --daemon should not return until socket is ready |
Date: |
Wed, 1 Oct 2008 09:51:10 -0700 (PDT) |
SRS0+wOMF+22+gmail.com=trentbuck@internode.on.net writes:
> From this transcript, you can see that after starting 'emacs
> --daemon', it takes five seconds before the socket is actually
> available for emacsclient to talk to it.
>
> $ emacs --daemon; while ! ls /tmp/emacs1187/; do sleep 1; done
Just curious, what do you get if you do:
emacs -Q --daemon; while ! ls /tmp/emacs1187/; do sleep 1; done
> emacs: no process killed
> ls: cannot access /tmp/emacs1187/: No such file or directory
> ls: cannot access /tmp/emacs1187/: No such file or directory
> ls: cannot access /tmp/emacs1187/: No such file or directory
> ls: cannot access /tmp/emacs1187/: No such file or directory
> server
>
> This is evil; it means that making $ALTERNATE_EDITOR a script that
> just does
>
> emacs --daemon && emacsclient
>
> results in a loop, because the socket isn't ready when emacsclient
> starts -- so emacsclient runs the above script again. For --daemon to
> be useful to me, it really must not exit until the socket is ready.
Unfortunately ATM I don't see an easy way to do that. Ideas/patches are
certainly welcome.
- bug#1058: 23.0.60; emacs --daemon should not return until socket is ready, SRS0+wOMF+22+gmail . com=trentbuck, 2008/10/01
- bug#1058: 23.0.60; emacs --daemon should not return until socket is ready,
Dan Nicolaescu <=
- bug#1058: 23.0.60; emacs --daemon should not return until socket is ready, Romain Francoise, 2008/10/01
- bug#1058: 23.0.60; emacs --daemon should not return until socket is ready, Dan Nicolaescu, 2008/10/01
- bug#1058: 23.0.60; emacs --daemon should not return until socket is ready, Romain Francoise, 2008/10/02
- bug#1058: 23.0.60; emacs --daemon should not return until socket is ready, Dan Nicolaescu, 2008/10/02
- bug#1058: 23.0.60; emacs --daemon should not return until socket is ready, Stefan Monnier, 2008/10/02
- bug#1058: 23.0.60; emacs --daemon should not return until socket is ready, Dan Nicolaescu, 2008/10/02
- bug#1058: 23.0.60; emacs --daemon should not return until socket is ready, Stefan Monnier, 2008/10/02
- bug#1058: 23.0.60; emacs --daemon should not return until socket is ready, Dan Nicolaescu, 2008/10/02