From c2e2bdf3c5fb81f821174d9b953b8e10e8100ec7 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Mon, 19 Sep 2011 17:56:20 -0700 Subject: [PATCH] listen on stdin always -- not sure how the condition got added -- and don't register for OUTbound events when listening -- stdin gets one and I don't want to sign up to handle it. --- xwords4/linux/cursesmain.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xwords4/linux/cursesmain.c b/xwords4/linux/cursesmain.c index abb999082..ef81fbda4 100644 --- a/xwords4/linux/cursesmain.c +++ b/xwords4/linux/cursesmain.c @@ -898,7 +898,7 @@ cursesListenOnSocket( CursesAppGlobals* globals, int newSock { #ifdef USE_GLIBLOOP GIOChannel* channel = g_io_channel_unix_new( newSock ); - guint watch = g_io_add_watch( channel, G_IO_IN | G_IO_OUT |G_IO_ERR, + guint watch = g_io_add_watch( channel, G_IO_IN | G_IO_ERR, func, globals ); SourceData* data = g_malloc( sizeof(*data) ); @@ -1649,9 +1649,7 @@ cursesmain( XP_Bool isServer, LaunchParams* params ) #endif #ifdef USE_GLIBLOOP - if ( params->quitAfter >= 0 ) { - cursesListenOnSocket( &g_globals, 0, handle_stdin ); /* stdin */ - } + cursesListenOnSocket( &g_globals, 0, handle_stdin ); #else cursesListenOnSocket( &g_globals, 0 ); /* stdin */