diff options
Diffstat (limited to 'src/fe-text/gui-readline.c')
-rw-r--r-- | src/fe-text/gui-readline.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 1b37fde1..6cda7fbb 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -70,13 +70,9 @@ static void sig_input(void); void input_listen_init(int handle) { - GIOChannel *stdin_channel; - - stdin_channel = g_io_channel_unix_new(handle); - readtag = g_input_add_full(stdin_channel, + readtag = g_input_add_poll(handle, G_PRIORITY_HIGH, G_INPUT_READ, (GInputFunction) sig_input, NULL); - g_io_channel_unref(stdin_channel); } void input_listen_deinit(void) |