Fixed pr comments.

This commit is contained in:
Armin Novak 2015-07-03 11:13:48 +02:00
parent d18b0fbeb4
commit c21de0dae6
2 changed files with 2 additions and 4 deletions

View File

@ -376,7 +376,7 @@ int SetEventFileDescriptor(HANDLE hEvent, int FileDescriptor, ULONG mode)
return -1;
event = (WINPR_EVENT*) Object;
event->bAttached = TRUE;
event->bAttached = FALSE;
event->Mode = mode;
event->pipe_fd[0] = FileDescriptor;
return 0;

View File

@ -217,10 +217,8 @@ DWORD WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds)
{
WINPR_PROCESS *process;
process = (WINPR_PROCESS *) Object;
int rc;
rc = waitpid(process->pid, &(process->status), 0);
if (rc != process->pid)
if (process->pid != waitpid(process->pid, &(process->status), 0))
{
WLog_ERR(TAG, "waitpid failure [%d] %s", errno, strerror(errno));
return WAIT_FAILED;