Compleated main logic
This commit is contained in:
@ -18,7 +18,8 @@ void threadF(void *arg) {
|
||||
}
|
||||
|
||||
// TODO add necessary variables from main
|
||||
long* connfd = (long*)arg[0];
|
||||
long* connfd = ;
|
||||
|
||||
|
||||
fd_set set, tmpset;
|
||||
FD_ZERO(&set);
|
||||
@ -38,7 +39,7 @@ void threadF(void *arg) {
|
||||
goto _cleanup;
|
||||
continue;
|
||||
}
|
||||
break; // r==0 and quit==0
|
||||
break; // r!=0 and quit==0
|
||||
}
|
||||
|
||||
|
||||
@ -90,7 +91,7 @@ _cleanup:
|
||||
}
|
||||
|
||||
|
||||
int parser(int len, char *command, queueT *queue, long fd_c, logT* logFileT, pthread_mutex_t *lock, waitingT **waiting) {
|
||||
int parser(int len, char *command, queueT *queue, long fd_c, taglia_t* taglia, pthread_mutex_t *lock, waitingT **waiting) {
|
||||
if(len<0 || !command || !queue || !logFileT || !waiting) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user