Fixed pr comments.
This commit is contained in:
parent
d18b0fbeb4
commit
c21de0dae6
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user