]> git.cworth.org Git - ttt/blobdiff - src/ttt-server.c
2005-12-09 Carl Worth <cworth@cworth.org>
[ttt] / src / ttt-server.c
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);