diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-10-13 18:41:48 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-10-13 18:41:48 -0700 |
| commit | 6ffe39308b3e102c830510c2f25d2224fdeac415 (patch) | |
| tree | 14f746b6a0e1065844aefbeed658b76304e4c88f | |
| parent | 999c60c0991d30bc3cdfb2e185cae1770bc1a24c (diff) | |
Deprecated support for piping commands in to bb at startup (undocumented). Users should use xargs if they want to do that sort of thing.
| -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 |
