summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2008-09-22 15:21:40 +0000
committerJuanma Barranquero <lekktu@gmail.com>2008-09-22 15:21:40 +0000
commit9d0a6e42058de55024e17ba40a8e9bb48c162db8 (patch)
treec24ca195e94d2f5d398ab0bcd3efec683ed585ff /src/emacs.c
parent9d29095c137170c8918feded7c28622d7472f7d7 (diff)
downloademacs-9d0a6e42058de55024e17ba40a8e9bb48c162db8.tar.gz
* emacs.c (Fdaemonp): Doc fix.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/emacs.c b/src/emacs.c
index af4a6924240..f94d2d39ae4 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1074,20 +1074,20 @@ main (int argc, char **argv)
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 @@ decode_env_path (evarname, defalt)
}
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;
}