m3dev

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fd054558b1e324a2b057e8ba1a989123c9ca9b9b
parent ed31c687145f67db2812ba4209d3cf31d6ac6ccc
Author: Brian Swetland <swetland@frotz.net>
Date:   Sun, 21 Jun 2015 21:19:54 -0700

linenoise: fix dumb bug in suspend/resume code.

Diffstat:
Mtools/linenoise.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/linenoise.c b/tools/linenoise.c @@ -776,11 +776,11 @@ ssize_t linenoiseRead(struct linenoiseState *l, void *ptr, int len) { fds[0].events = POLLIN; fds[0].revents = 0; if (linenoise_pipefds[0] < 0) { - nfds = 1; + nfds = 2; fds[1].fd = linenoise_pipefds[0]; fds[1].events = POLLIN; } else { - nfds = 2; + nfds = 1; } fds[1].revents = 0;