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>
* emacs.c (standard_args): Add --daemon.
......
......@@ -1071,9 +1071,9 @@ main (int argc, char **argv)
exit (0);
}
#ifndef DOS_NT
if (argmatch (argv, argc, "-daemon", "--daemon", 5, NULL, &skip_args))
{
#ifndef DOS_NT
pid_t f = fork();
int nfd;
if (f > 0)
......@@ -1093,11 +1093,11 @@ main (int argc, char **argv)
#ifdef HAVE_SETSID
setsid();
#endif
}
#else /* DOS_NT */
fprintf (stderr, "This platform does not support the -daemon flag.\n");
exit (1);
fprintf (stderr, "This platform does not support the -daemon flag.\n");
exit (1);
#endif /* DOS_NT */
}
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