diff options
| -rw-r--r-- | bb.c | 11 | ||||
| -rw-r--r-- | bb.h | 3 |
2 files changed, 1 insertions, 13 deletions
@@ -1303,17 +1303,6 @@ int main(int argc, char *argv[]) } } - // Check whether anything was piped in to begin with, - // and if so, treat it as commands - struct pollfd pfd = {STDIN_FILENO, POLLIN, 0}; - if (poll(&pfd, 1, 0) == 1 && pfd.revents & POLLIN) { - ssize_t len; - char buf[1024]; - while ((len = read(STDIN_FILENO, buf, sizeof(buf))) > 0) - write(cmdfd, buf, (size_t)len); - write(cmdfd, "\0", 1); - } - if (cmdfd != -1) { close(cmdfd); cmdfd = -1; @@ -8,7 +8,6 @@ #include <dirent.h> #include <fcntl.h> #include <limits.h> -#include <poll.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> @@ -26,7 +25,7 @@ #include "bterm.h" // Macros: -#define BB_VERSION "0.17.0" +#define BB_VERSION "0.17.1" #ifndef PATH_MAX #define PATH_MAX 4096 |
