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
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 $?
}
|
|