summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0f3d405)
ret is never used in error code path.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
fd_r = open(path, O_RDONLY | O_NONBLOCK);
if (fd_r < 0) {
PERROR("open fifo");
fd_r = open(path, O_RDONLY | O_NONBLOCK);
if (fd_r < 0) {
PERROR("open fifo");
goto error;
}
pipe->fd[0] = fd_r;
goto error;
}
pipe->fd[0] = fd_r;
fd_w = open(path, O_WRONLY | O_NONBLOCK);
if (fd_w < 0) {
PERROR("open fifo");
fd_w = open(path, O_WRONLY | O_NONBLOCK);
if (fd_w < 0) {
PERROR("open fifo");
goto error;
}
pipe->fd[1] = fd_w;
goto error;
}
pipe->fd[1] = fd_w;