From: hackbard Date: Mon, 8 Nov 2004 08:46:32 +0000 (+0000) Subject: some more printfs to server + deleted debug printf in gui X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9a7f27f952d23ebd856c4c60fbdf7c024f95f7b;p=physik%2Fnlsop.git some more printfs to server + deleted debug printf in gui --- diff --git a/nlsop_gui.c b/nlsop_gui.c index f2e8c91..94e9fd8 100644 --- a/nlsop_gui.c +++ b/nlsop_gui.c @@ -405,8 +405,6 @@ int main(int argc,char **argv) /* wait for job */ event_start(&event,allyouneed,get_command,nothing); - dprintf(fd,"hu?\n"); - close(fd); return 1; diff --git a/nlsop_server.c b/nlsop_server.c index 7f24e8c..085e289 100644 --- a/nlsop_server.c +++ b/nlsop_server.c @@ -112,6 +112,8 @@ int add_node(t_net *net,t_event *event,t_list *c_list,t_list *g_list) { /* if we have a new node - care for it! */ event_math(net->connection[channel].fd,event,READ,ADD); + printf("\n"); + return 1; } @@ -262,12 +264,14 @@ int handle_node(t_net *net,t_event *event, c->status=IDLE; /* delete job entry */ list_del_current(job); + printf("job ended, saved and removed from list.\n"); } if(data==DC_OK) { save_job(net,i,j,DC_OK); /* inc progress state */ j->progress+=1; + printf("job at next level, saved.\n"); } if(data==DC_QUIT) { @@ -279,6 +283,7 @@ int handle_node(t_net *net,t_event *event, list_del_current(c_list); /* change job state */ j->status=IN_QUEUE; + printf("client terminating, job queued, client removed.\n"); } } @@ -308,6 +313,8 @@ int handle_node(t_net *net,t_event *event, } } } + + printf("\n"); return 1; }