X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=pipex_win32.c;h=24199b71e086b3e5887436044f704f82def6d5b1;hb=aaf072500213db1bed274a2dd8ebe711f21ab898;hp=3f9ed90638b2087af8d83071f97ec9d3b906f6df;hpb=a0f731f21d6aa26dbf7246039a1c66c2ade0533f;p=polyglot.git diff --git a/pipex_win32.c b/pipex_win32.c index 3f9ed90..24199b7 100644 --- a/pipex_win32.c +++ b/pipex_win32.c @@ -219,10 +219,7 @@ static void pipex_set_eof_input(pipex_t *pipex){ EnterCriticalSection(&(pipex->CriticalSection)); (pipex->state)|=PIPEX_EOF; LeaveCriticalSection(&(pipex->CriticalSection)); - // not quit the right place - my_log("%s->Adapter: EOF\n",pipex->name); - -} + } // pipex_active() @@ -395,6 +392,7 @@ bool pipex_readln(pipex_t *pipex, char *szLineStr) { WaitForSingleObject(pipex->hEvent,INFINITE); } } + my_log("%s->Adapter: EOF\n",pipex->name); szLineStr[0]='\0'; return FALSE; } @@ -474,8 +472,8 @@ void pipex_write(pipex_t *pipex, const char *szLineStr) { void pipex_writeln(pipex_t *pipex, const char *szLineStr) { DWORD dwBytes; DWORD dwLengthWriteBuffer; - my_log("Adapter->%s: %s\n",pipex->name,pipex->szWriteBuffer); pipex_write(pipex, szLineStr); + my_log("Adapter->%s: %s\n",pipex->name,pipex->szWriteBuffer); if(pipex->bPipe){ dwLengthWriteBuffer = strlen(pipex->szWriteBuffer); if(dwLengthWriteBuffer>=sizeof(pipex->szWriteBuffer)-3){