More work on getting console mode to work. Took an ifdef around a piece
of code that was just for INFO_SLAVE(#undef INFO_SLAVE near top of file
if COMPILE_CONSOLE is defined). Took out netmush detach code as well if
COMPILE_CONSOLE is on.
}
}
+#ifndef COMPILE_CONSOLE
#ifdef HAVE_FORK
/* Fork off and detach from controlling terminal. */
if (detach_session) {
}
}
#endif
+#endif
#ifdef HAVE_GETPID
if (pidfile) {
#endif
close_sockets();
+
sql_shutdown();
mush_lua_stop(); /* shutdown the lua environment */
if (notify_fd >= 0)
FD_SET(notify_fd, &input_set);
+#ifndef COMPILE_CONSOLE
found = select(maxd, &input_set, &output_set, (fd_set *) 0, &timeout);
+#else
+ found = select(2, &input_set, &output_set, (fd_set *) 0, &timeout);
+#endif
if (found < 0) {
#ifdef WIN32
if (found == SOCKET_ERROR && WSAGetLastError() != WSAEINTR)