]> git.cworth.org Git - ttt/commitdiff
2005-12-09 Carl Worth <cworth@cworth.org>
authorCarl Worth <carl@theworths.org>
Fri, 9 Dec 2005 17:19:58 +0000 (17:19 +0000)
committerCarl Worth <carl@theworths.org>
Fri, 9 Dec 2005 17:19:58 +0000 (17:19 +0000)
        * src/ttt-server.c (main): Put the initial server started message
        in the log file as well.

ChangeLog
src/ttt-server.c

index 372a3206c5d6c546ed5b46c4bd88a0eadb6c1aea..d714dd6181a9a14f11af77e4aaf988b2d5f57344 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-09  Carl Worth  <cworth@cworth.org>
+
+       * src/ttt-server.c (main): Put the initial server started message
+       in the log file as well.
+
 2005-12-09  Carl Worth  <cworth@cworth.org>
 
        * src/ttt-args.h:
 2005-12-09  Carl Worth  <cworth@cworth.org>
 
        * src/ttt-args.h:
index 4f647ee04f69c8b6e0044c325109cedd4b3b4ceb..7a3ed341236658a9f34a7cd0651cff0cf03936ce 100644 (file)
@@ -328,10 +328,12 @@ main (int argc, char **argv)
 
     socket = ttt_socket_create_server (args.host, args.port);
 
 
     socket = ttt_socket_create_server (args.host, args.port);
 
-    if (args.detach)
+    if (args.detach) {
        printf ("Server started listening on %s:%s\n", args.host, args.port);
        printf ("Server started listening on %s:%s\n", args.host, args.port);
-    else
+       fprintf (stderr, "Server started listening on %s:%s\n", args.host, args.port);
+    } else {
        printf (WELCOME_MESSAGE, args.host, args.port, args.host, args.port);
        printf (WELCOME_MESSAGE, args.host, args.port, args.host, args.port);
+    }
 
     fclose (stdout);
     fclose (stdin);
 
     fclose (stdout);
     fclose (stdin);