Commit 846c5b07 authored by 's avatar
Browse files

various fixes

git-svn-id: file:///home/svn/mapi/trunk@224 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 33110ad7
......@@ -1484,7 +1484,9 @@ mapi_get_next_pkt(int fd,int fid)
hflow->dbuf->length=BASIC_SIZE;
mapiipc_remote_write(hflow->dbuf, hflow->rhost);
}
rflow->pending_msgs=-1;
pthread_mutex_lock(&rflow->mutex);
rflow->pending_msgs=0;
pthread_mutex_unlock(&rflow->mutex);
sem_wait(&rflow->pkt_sem); //wait at least one host packet
hflow=(host_flow*)flist_pop_first(rflow->pkt_list);
switch(hflow->dbuf->cmd) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment