aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bb.c11
-rw-r--r--bb.h3
2 files changed, 1 insertions, 13 deletions
diff --git a/bb.c b/bb.c
index 2ce3a00..f2ff0d0 100644
--- a/bb.c
+++ b/bb.c
@@ -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;
diff --git a/bb.h b/bb.h
index ba4d404..7cf7d80 100644
--- a/bb.h
+++ b/bb.h
@@ -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