Fixed the write error check printing under the wrong circumstances
This commit is contained in:
parent
794789e01f
commit
2292d339ce
@ -1281,7 +1281,7 @@ static void do_copy(void) {
|
||||
}
|
||||
close(fds[0]);
|
||||
|
||||
if (write(fds[1], action, strlen(action)) != 0) {
|
||||
if(write(fds[1], action, strlen(action)) <= 0) {
|
||||
fprintf(stderr, "fd pipe failed to write\n");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user