From 3fb29eb6a3418db7048b27cece3b3fa96fbd69ce Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 9 Dec 2005 17:19:58 +0000 Subject: [PATCH] 2005-12-09 Carl Worth * src/ttt-server.c (main): Put the initial server started message in the log file as well. --- ChangeLog | 5 +++++ src/ttt-server.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 372a320..d714dd6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-12-09 Carl Worth + + * src/ttt-server.c (main): Put the initial server started message + in the log file as well. + 2005-12-09 Carl Worth * src/ttt-args.h: diff --git a/src/ttt-server.c b/src/ttt-server.c index 4f647ee..7a3ed34 100644 --- a/src/ttt-server.c +++ b/src/ttt-server.c @@ -328,10 +328,12 @@ main (int argc, char **argv) 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); - 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); + } fclose (stdout); fclose (stdin); -- 2.43.0