From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Tury Newsgroups: gmane.emacs.help Subject: problems with the daemon at log out Date: Sun, 15 Nov 2009 13:37:50 -0800 (PST) Organization: http://groups.google.com Message-ID: <37a3d364-a832-439a-bb68-9e60586fe7f5@v30g2000yqm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1258321262 15057 80.91.229.12 (15 Nov 2009 21:41:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Nov 2009 21:41:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 15 22:40:55 2009 Return-path: Envelope-to: geh-help-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 1N9mq4-0000zt-M0 for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Nov 2009 22:40:52 +0100 Original-Received: from localhost ([127.0.0.1]:34902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9mq4-0002ca-8n for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Nov 2009 16:40:52 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!v30g2000yqm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 81.183.101.28 Original-X-Trace: posting.google.com 1258321070 17303 127.0.0.1 (15 Nov 2009 21:37:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 15 Nov 2009 21:37:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v30g2000yqm.googlegroups.com; posting-host=81.183.101.28; posting-account=Xb8sGQoAAABwL3BYvXXbA1TD0PsAYrcM User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:174691 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69764 Archived-At: Hi, I start emacs --daemon when I log in and don't want to do any special at log out. This works if I don't start emacsclient at all OR if I run the command kill-emacs. However, I have problems in the most natural case: when I started and closed some emacsclients before log out. In such cases, at log out I get a question (from Gnome?): "A program is still running Emacs is not responding". Why is this? How to avoid this (by some Emacs config)? I see that Emacs has 4 open files/sockets when --daemon is started (1-1-1 (/dev/null) for stdin-stdout-stderr + 1 (/tmp/emacs1000/server) for server listening I guess). When I start the first emacsclient, other 3 files/sockets are opened. When I close the emacsclient 5 (or more) files/sockets remain open. After this (=after the first start+stop of an emacsclient) the number of the opened files/sockets remain constant (after subsequent emacsclient start+stops). I guess the extra socket(s) left open after the first emacsclient start +stop causes my problem. Am I right? How to avoid this? Thanks,P PS. I use Ubuntu 9.10 + cvs emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-08. I tried it without custom .emacs file, and found no differences in this behaviour.