mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
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.
This commit is contained in:
parent
97334faa95
commit
c2e2bdf3c5
1 changed files with 2 additions and 4 deletions
|
@ -898,7 +898,7 @@ cursesListenOnSocket( CursesAppGlobals* globals, int newSock
|
||||||
{
|
{
|
||||||
#ifdef USE_GLIBLOOP
|
#ifdef USE_GLIBLOOP
|
||||||
GIOChannel* channel = g_io_channel_unix_new( newSock );
|
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 );
|
func, globals );
|
||||||
|
|
||||||
SourceData* data = g_malloc( sizeof(*data) );
|
SourceData* data = g_malloc( sizeof(*data) );
|
||||||
|
@ -1649,9 +1649,7 @@ cursesmain( XP_Bool isServer, LaunchParams* params )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_GLIBLOOP
|
#ifdef USE_GLIBLOOP
|
||||||
if ( params->quitAfter >= 0 ) {
|
cursesListenOnSocket( &g_globals, 0, handle_stdin );
|
||||||
cursesListenOnSocket( &g_globals, 0, handle_stdin ); /* stdin */
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
cursesListenOnSocket( &g_globals, 0 ); /* stdin */
|
cursesListenOnSocket( &g_globals, 0 ); /* stdin */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue