summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwrog <wrog>2004-05-21 23:02:56 (GMT)
committerwrog <wrog>2004-05-21 23:02:56 (GMT)
commit3f7cc388b545b5dfcd5e17afddfa7d51dc507efc (patch)
tree968c44f2345c9b5c0cc7cf2fb27500c2a6f11812
parent4485a26605ce4832541a0e7b46e12df1d07c79ce (diff)
downloadmoo-WROGUE.zip
moo-WROGUE.tar.gz
moo-WROGUE.tar.bz2
moo-WROGUE.tar.xz
NP_SINGLE needs to have stdout stay openWROGUE
-rw-r--r--server.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/server.c b/server.c
index 57ff5e9..440a9cd 100644
--- a/server.c
+++ b/server.c
@@ -865,7 +865,9 @@ emergency_mode()
}
printf("Bye. (%s)\n\n", start_ok ? "continuing" : "saving database");
+#if NETWORK_PROTOCOL != NP_SINGLE
fclose(stdout);
+#endif
free_stream(s);
in_emergency_mode = 0;
@@ -1215,8 +1217,10 @@ main(int argc, char **argv)
this_program, db_usage_string(), network_usage_string());
exit(1);
}
+#if NETWORK_PROTOCOL != NP_SINGLE
if (!emergency)
fclose(stdout);
+#endif
if (log_file)
fclose(stderr);
@@ -1741,6 +1745,9 @@ char rcsid_server[] = "$Id$";
/*
* $Log$
+ * Revision 1.5.10.4 2004/05/21 23:02:56 wrog
+ * NP_SINGLE needs to have stdout stay open
+ *
* Revision 1.5.10.3 2004/05/20 19:57:11 wrog
* fixed flushing issues w.r.t. emergency mode;
* close stdout and stderr when we are not using them