Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Ulrich Mueller (ulm)" <ulm@g.o>
Subject: emacs r1167 - emacs-daemon
Date: Thu, 04 Dec 2008 23:04:57 +0000
Author: ulm
Date: 2008-12-04 23:04:56 +0000 (Thu, 04 Dec 2008)
New Revision: 1167

Modified:
   emacs-daemon/ChangeLog
   emacs-daemon/emacs.rc
Log:
Call start-stop-daemon with --background option.

Modified: emacs-daemon/ChangeLog
===================================================================
--- emacs-daemon/ChangeLog	2008-12-03 07:05:06 UTC (rev 1166)
+++ emacs-daemon/ChangeLog	2008-12-04 23:04:56 UTC (rev 1167)
@@ -1,6 +1,7 @@
 2008-12-03  Ulrich Mueller  <ulm@g.o>
 
 	* emacs.rc (checkconfig): Use numerical user id for root.
+	(start): Call start-stop-daemon with --background option.
 
 2008-11-30  Ulrich Mueller  <ulm@g.o>
 

Modified: emacs-daemon/emacs.rc
===================================================================
--- emacs-daemon/emacs.rc	2008-12-03 07:05:06 UTC (rev 1166)
+++ emacs-daemon/emacs.rc	2008-12-04 23:04:56 UTC (rev 1167)
@@ -41,8 +41,12 @@
 
     ebegin "Starting Emacs daemon for ${USER}"
     eval home="~${USER}"
-    start-stop-daemon --start --user "${USER}" --chdir "${home}" \
-	--quiet --pidfile "${PIDFILE}" --env EMACS="${EMACS}" \
+
+    # Emacs detaches and exits the parent process only after loading the
+    # user's .emacs (initialisation). Anything may happen there, so we
+    # use --background to ensure that start-stop-daemon doesn't hang.
+    start-stop-daemon --start --user "${USER}" --chdir "${home}" --quiet \
+	--background --pidfile "${PIDFILE}" --env EMACS="${EMACS}" \
 	--exec "${EMACS_START:-${EMACS}}" -- --daemon ${EMACS_OPTS}
     eend $?
 }



Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in app-editors/jove: ChangeLog jove-4.16.0.70.3.ebuild
Next by thread:
gentoo-x86 commit in media-libs/libgphoto2: ChangeLog libgphoto2-2.4.3.ebuild
Previous by date:
gentoo commit in xml/htdocs/main/it: sponsors.xml
Next by date:
gentoo-x86 commit in mail-filter/amavisd-new: ChangeLog amavisd-new-2.6.1-r1.ebuild


Updated Apr 23, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.