diff options
author | Fernando Carrijo <fcarrijo@yahoo.com.br> | 2010-08-02 20:18:29 +0300 |
---|---|---|
committer | Tiago Vignatti <tiago.vignatti@nokia.com> | 2010-08-02 20:18:29 +0300 |
commit | 5e75206b4dc02d0a070725b805fb3eb633341986 (patch) | |
tree | e8a2a0a5958a1180d86f106e835437d5795c8d73 /os | |
parent | aceab99ee20447be372e0f805c105cdb62c566f0 (diff) |
os: inputthread: delete unused pipe between input and main thread
InputReadPipe and InputWritePipe are deadcode. Similar mechanism is being
employed already in CreateWellKnownSockets.
Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Diffstat (limited to 'os')
-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); |