forked from enlightenment/efl
ecore_pipe: Fix potential double close
p->fd_read can be closed in _ecore_pipe_read (from a previous loop) CID 1267459
This commit is contained in:
parent
7bfecbdaf2
commit
868d0fb2e8
|
@ -486,9 +486,12 @@ _ecore_pipe_wait(Ecore_Pipe *p,
|
|||
break;
|
||||
}
|
||||
else if (errno != EINTR)
|
||||
{
|
||||
if (p->fd_read != PIPE_FD_INVALID)
|
||||
{
|
||||
close(p->fd_read);
|
||||
p->fd_read = PIPE_FD_INVALID;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue