emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/emacs.c,v


From: Juanma Barranquero
Subject: [Emacs-diffs] Changes to emacs/src/emacs.c,v
Date: Mon, 22 Sep 2008 15:21:43 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Juanma Barranquero <lektu>      08/09/22 15:21:42

Index: emacs.c
===================================================================
RCS file: /sources/emacs/emacs/src/emacs.c,v
retrieving revision 1.445
retrieving revision 1.446
diff -u -b -r1.445 -r1.446
--- emacs.c     22 Sep 2008 12:42:52 -0000      1.445
+++ emacs.c     22 Sep 2008 15:21:41 -0000      1.446
@@ -1074,20 +1074,20 @@
   if (argmatch (argv, argc, "-daemon", "--daemon", 5, NULL, &skip_args))
     {
 #ifndef DOS_NT
-      pid_t f = fork();
+      pid_t f = fork ();
       int nfd;
       if (f > 0)
-       exit(0);
+       exit (0);
       if (f < 0)
        {
          fprintf (stderr, "Cannot fork!\n");
-         exit(1);
+         exit (1);
        }
 
-      nfd = open("/dev/null", O_RDWR);
-      dup2(nfd, 0);
-      dup2(nfd, 1);
-      dup2(nfd, 2);
+      nfd = open ("/dev/null", O_RDWR);
+      dup2 (nfd, 0);
+      dup2 (nfd, 1);
+      dup2 (nfd, 2);
       close (nfd);
       is_daemon = 1;
 #ifdef HAVE_SETSID
@@ -2383,8 +2383,8 @@
 }
 
 DEFUN ("daemonp", Fdaemonp, Sdaemonp, 0, 0, 0,
-       doc: /* Make the current emacs process a daemon.*/)
-  (void)
+       doc: /* Return t if the current emacs process is a daemon.  */)
+  ()
 {
   return is_daemon ? Qt : Qnil;
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]