Commit 9d29095c authored by Dan Nicolaescu's avatar Dan Nicolaescu

(main): Place #ifdef.in the proper place.

parent b45c803b
2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
* emacs.c (main): Place #ifdef.in the proper place.
2008-09-21 Dan Nicolaescu <dann@ics.uci.edu> 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
* emacs.c (standard_args): Add --daemon. * emacs.c (standard_args): Add --daemon.
......
...@@ -1071,9 +1071,9 @@ main (int argc, char **argv) ...@@ -1071,9 +1071,9 @@ main (int argc, char **argv)
exit (0); exit (0);
} }
#ifndef DOS_NT
if (argmatch (argv, argc, "-daemon", "--daemon", 5, NULL, &skip_args)) if (argmatch (argv, argc, "-daemon", "--daemon", 5, NULL, &skip_args))
{ {
#ifndef DOS_NT
pid_t f = fork(); pid_t f = fork();
int nfd; int nfd;
if (f > 0) if (f > 0)
...@@ -1093,11 +1093,11 @@ main (int argc, char **argv) ...@@ -1093,11 +1093,11 @@ main (int argc, char **argv)
#ifdef HAVE_SETSID #ifdef HAVE_SETSID
setsid(); setsid();
#endif #endif
}
#else /* DOS_NT */ #else /* DOS_NT */
fprintf (stderr, "This platform does not support the -daemon flag.\n"); fprintf (stderr, "This platform does not support the -daemon flag.\n");
exit (1); exit (1);
#endif /* DOS_NT */ #endif /* DOS_NT */
}
if (! noninteractive) if (! noninteractive)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment