]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix background daemon on Haiku
authorPo Lu <luangruo@yahoo.com>
Thu, 3 Feb 2022 01:47:29 +0000 (01:47 +0000)
committerPo Lu <luangruo@yahoo.com>
Thu, 3 Feb 2022 01:47:29 +0000 (01:47 +0000)
* src/emacs.c (DAEMON_MUST_EXEC): Define when using the Haiku
application kit.

src/emacs.c

index 2014e97fbff0e80f7c00c86f256dd074483664eb..31cc2078bd3697a429bcc896c23e4dce4eb81ba8 100644 (file)
@@ -190,8 +190,11 @@ static uintmax_t heap_bss_diff;
 
    We mark being in the exec'd process by a daemon name argument of
    form "--daemon=\nFD0,FD1\nNAME" where FD are the pipe file descriptors,
-   NAME is the original daemon name, if any. */
-#if defined NS_IMPL_COCOA || defined CYGWIN
+   NAME is the original daemon name, if any.
+
+   On Haiku, the table of semaphores used for looper locks doesn't
+   persist across forked processes.  */
+#if defined NS_IMPL_COCOA || defined CYGWIN || defined HAVE_HAIKU
 # define DAEMON_MUST_EXEC
 #endif