+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.
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)
#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)
{