aboutsummaryrefslogtreecommitdiffstats
path: root/apps/clients.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/clients.c')
-rw-r--r--apps/clients.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/clients.c b/apps/clients.c
index d040431..6175492 100644
--- a/apps/clients.c
+++ b/apps/clients.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.23 2008/03/11 17:47:24 james
+ * *** empty log message ***
+ *
* Revision 1.22 2008/03/07 14:16:44 james
* *** empty log message ***
*
@@ -177,6 +180,7 @@ clients_new_client (Clients * cs, Socket * s, Context * ctx)
fprintf (stderr, "Client at %p created\n", c);
#endif
+ log_f(ctx->l,"<client %p connected - now %d clients>",c,cs->n);
if (ipc_msg_send_debug (s, "new_client"))
c->dead++;
@@ -185,7 +189,7 @@ clients_new_client (Clients * cs, Socket * s, Context * ctx)
}
void
-clients_reap (Clients * cs)
+clients_reap (Clients * cs,Context *ctx)
{
Client **p, *c;
@@ -197,6 +201,7 @@ clients_reap (Clients * cs)
*p = c->next;
client_free (c);
cs->n--;
+ log_f(ctx->l,"<client %p disconnected - now %d clients>",c,cs->n);
} else {
p = &(c->next);
}
@@ -247,12 +252,12 @@ clients_post_select (Clients * cs, Context * ctx, fd_set * rfds,
}
if (deaded)
- clients_reap (cs);
+ clients_reap (cs,ctx);
}
void
-clients_shutdown (Clients * cs)
+clients_shutdown (Clients * cs,Context *ctx)
{
Client *c;
@@ -261,7 +266,7 @@ clients_shutdown (Clients * cs)
}
- clients_reap (cs);
+ clients_reap (cs,ctx);
}