projects
/
physik
/
nlsop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0fbb254
)
some more printfs to server + deleted debug printf in gui
author
hackbard
<hackbard>
Mon, 8 Nov 2004 08:46:32 +0000
(08:46 +0000)
committer
hackbard
<hackbard>
Mon, 8 Nov 2004 08:46:32 +0000
(08:46 +0000)
nlsop_gui.c
patch
|
blob
|
history
nlsop_server.c
patch
|
blob
|
history
diff --git
a/nlsop_gui.c
b/nlsop_gui.c
index
f2e8c91
..
94e9fd8
100644
(file)
--- 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);
/* wait for job */
event_start(&event,allyouneed,get_command,nothing);
- dprintf(fd,"hu?\n");
-
close(fd);
return 1;
close(fd);
return 1;
diff --git
a/nlsop_server.c
b/nlsop_server.c
index
7f24e8c
..
085e289
100644
(file)
--- 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);
/* if we have a new node - care for it! */
event_math(net->connection[channel].fd,event,READ,ADD);
+ printf("\n");
+
return 1;
}
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);
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;
}
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) {
}
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;
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;
}
return 1;
}