We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2939ec6 commit 49a3b54Copy full SHA for 49a3b54
util.c
@@ -762,8 +762,8 @@ int aproc_drain_all(aproc_t *aprocs, int *ttyfd) {
762
if (FD_ISSET(aproc->rfd, &readfds)) {
763
nbytes = read(aproc->rfd, &buf, 1024);
764
buf[nbytes] = '\0';
765
- aproc->callback(aproc, buf, nbytes);
766
if (nbytes == 0) aproc->is_done = 1;
+ aproc->callback(aproc, buf, nbytes);
767
}
768
// Destroy on eof.
769
// Not sure if ferror and feof have any effect here given we're not
0 commit comments