From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs 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) Message-ID: <200810011651.m91GpAZQ010333@mothra.ics.uci.edu> References: <1222782234_2281@mail.internode.on.net> Reply-To: Dan Nicolaescu , 1058@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222881142 24498 80.91.229.12 (1 Oct 2008 17:12:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2008 17:12:22 +0000 (UTC) Cc: trentbuck@gmail.com, 1058@emacsbugs.donarmstrong.com, rfrancoise@debian.org To: SRS0+wOMF+22+gmail.com=trentbuck@internode.on.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 01 19:13:17 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kl5G1-0003os-TX for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Oct 2008 19:13:02 +0200 Original-Received: from localhost ([127.0.0.1]:57492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl5Ey-0001vH-SG for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Oct 2008 13:11:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl5D7-0007mj-Bx for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2008 13:10:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl5D5-0007jG-KD for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2008 13:10:00 -0400 Original-Received: from [199.232.76.173] (port=36033 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl5D4-0007iL-Tf for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2008 13:09:58 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37527) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kl5D4-0000FW-I2 for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2008 13:09:58 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m91H9tOH007436; Wed, 1 Oct 2008 10:09:56 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m91H0334004285; Wed, 1 Oct 2008 10:00:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 01 Oct 2008 17:00:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1058 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1058-submit@emacsbugs.donarmstrong.com id=B1058.12228799152979 (code B ref 1058); Wed, 01 Oct 2008 17:00:03 +0000 Original-Received: (at 1058) by emacsbugs.donarmstrong.com; 1 Oct 2008 16:51:55 +0000 Original-Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m91GpquG002973 for <1058@emacsbugs.donarmstrong.com>; Wed, 1 Oct 2008 09:51:53 -0700 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m91GpCY1010114; Wed, 1 Oct 2008 09:51:15 -0700 (PDT) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id m91GpAZQ010333; Wed, 1 Oct 2008 09:51:10 -0700 (PDT) In-Reply-To: <1222782234_2281@mail.internode.on.net> (SRS0's message of "Tue, 30 Sep 2008 23:13:54 +0930 (CST)") Original-Lines: 31 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: m91GpCY1010114 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 01 Oct 2008 13:09:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20965 Archived-At: 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.