Skip to content
Snippets Groups Projects
Commit 408575e6 authored by Joey Le's avatar Joey Le
Browse files

More bug fixes

parent 020ce659
Branches
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ int execute_pipeline(command_list_t *cmd_list) {
if (prev_pipe_read != -1) {
char buffer[1024];
ssize_t bytes_read;
while ((bytes_read = read(prev_pipe_read, buffer, sizeof(buffer) - 1)) {
while ((bytes_read = read(prev_pipe_read, buffer, sizeof(buffer) - 1))) {
if (bytes_read < 0) {
perror("read");
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment