diff options
-rw-r--r-- | os/inputthread.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/os/inputthread.c b/os/inputthread.c index f647060ef..02edda4b3 100644 --- a/os/inputthread.c +++ b/os/inputthread.c @@ -58,9 +58,6 @@ extern int InputThreadWritePipe; static pid_t tid_generation; -int InputReadPipe = -1; -int InputWritePipe = -1; - /* * Create connections in the input thread. Must be called by the * DDX implementation. @@ -89,26 +86,11 @@ WaitForInput(void* argument) { int i; fd_set InputDevices; - int i_pipe[2]; - tid_generation = syscall(__NR_gettid); FD_ZERO(&InputDevices); - /* The "communication channel" between the input and main thread */ - if (pipe(i_pipe) < 0) { - perror("pipe"); - exit(-1); - } - - /* Make pipes nonblocking */ - fcntl(i_pipe[0], F_SETFL, O_NONBLOCK); - fcntl(i_pipe[1], F_SETFL, O_NONBLOCK); - - InputReadPipe = i_pipe[0]; - InputWritePipe = i_pipe[1]; - while (1) { XFD_COPYSET (&InputThreadFd, &InputDevices); |