|
|
@@ -758,9 +758,14 @@ int main(int argc, char **argv)
|
|
|
putlog(LOG_MISC, "*", "=== %s: %d users.", conf.bot->nick, count_users(userlist));
|
|
|
|
|
|
/* Move into background? */
|
|
|
+ /* we don't split cygwin because to run as a service the bot shouldn't exit.
|
|
|
+ confuses windows ;)
|
|
|
+ */
|
|
|
if (backgrd) {
|
|
|
+#ifndef CYGWIN_HACKS
|
|
|
bg_do_split();
|
|
|
} else {
|
|
|
+#endif /* !CYGWIN_HACKS */
|
|
|
FILE *f = NULL;
|
|
|
int xx;
|
|
|
|
|
|
@@ -776,7 +781,9 @@ int main(int argc, char **argv)
|
|
|
fclose(f);
|
|
|
} else
|
|
|
printf(EGG_NOWRITE, conf.bot->pid_file);
|
|
|
-
|
|
|
+#ifdef CYGWIN_HACKS
|
|
|
+ printf("Launched into the background (pid: %d)\n\n", xx);
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
use_stderr = 0; /* Stop writing to stderr now */
|