aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-06-27 19:09:58 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-06-27 19:09:58 +0200
commitf7c5db9a32bb0082b59e73fa01656cd083756c3d (patch)
treeac9ebd3bbe2a1f400a4b745f285c701544cbf8e3
parent867e590dfd0ac2b9e73773da96ca75113bdbeaa9 (diff)
downloadmarkov-k-ram-f7c5db9a32bb0082b59e73fa01656cd083756c3d.zip
markov-k-ram-f7c5db9a32bb0082b59e73fa01656cd083756c3d.tar.bz2
Removes some badly handled debug messages.
-rw-r--r--src/server/server.c2
-rw-r--r--src/server/server_wait_for_event.c5
-rw-r--r--src/server/server_worker_send.c1
3 files changed, 5 insertions, 3 deletions
diff --git a/src/server/server.c b/src/server/server.c
index 640584f..709a9a7 100644
--- a/src/server/server.c
+++ b/src/server/server.c
@@ -32,7 +32,7 @@ int JH_server_main
switch (JH_server_wait_for_event(&server))
{
case 0: /* Timed out or signal'd. */
- JH_S_DEBUG(stderr, 1, "Timed out...");
+ //JH_S_DEBUG(stderr, 1, "Timed out...");
JH_server_handle_joining_threads(&server);
retries = 0;
diff --git a/src/server/server_wait_for_event.c b/src/server/server_wait_for_event.c
index c949438..bda9f76 100644
--- a/src/server/server_wait_for_event.c
+++ b/src/server/server_wait_for_event.c
@@ -35,7 +35,10 @@ int JH_server_wait_for_event
&(server->socket.timeout)
);
- JH_DEBUG(stderr, 1, "SELECT returned: %i, errno is %i.", ready_fds, errno);
+ if (errno != 0)
+ {
+ JH_DEBUG(stderr, 1, "SELECT returned: %i, errno is %i.", ready_fds, errno);
+ }
if (errno == EINTR)
{
diff --git a/src/server/server_worker_send.c b/src/server/server_worker_send.c
index c85e13e..a2c25d3 100644
--- a/src/server/server_worker_send.c
+++ b/src/server/server_worker_send.c
@@ -188,7 +188,6 @@ int JH_server_worker_send_generated_reply
if (written != (worker->buffer_length * sizeof(JH_char)))
{
- // TODO: Error handling.
JH_S_ERROR
(
stderr,