summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-12-04 10:18:02 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2014-12-04 10:18:02 +0100
commitd127245313531c8a05231f04a8f09e45c0218939 (patch)
tree87d065e2ae453d439c8a16981bea31f61dea07e7
parentd25b982cbe99837668a6928ffd556d678fbdb1c5 (diff)
downloadbiruda-d127245313531c8a05231f04a8f09e45c0218939.tar.gz
biruda-d127245313531c8a05231f04a8f09e45c0218939.tar.bz2
..
-rw-r--r--src/worker.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c
index 99ad6bd..6dc4501 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -136,8 +136,9 @@ static void *worker_func( void *thread_data )
wed->err_channel = g_io_channel_unix_new( wed->err );
#endif
- g_io_add_watch( wed->out_channel, GIOCondition( G_IO_IN | G_IO_HUP ), (GIOFunc)watch_output, (gpointer *)wed );
- g_io_add_watch( wed->err_channel, GIOCondition( G_IO_IN | G_IO_HUP ), (GIOFunc)watch_output, (gpointer *)wed );
+ GIOCondition cond = G_IO_IN | G_IO_HUP;
+ g_io_add_watch( wed->out_channel, cond, (GIOFunc)watch_output, (gpointer *)wed );
+ g_io_add_watch( wed->err_channel, cond, (GIOFunc)watch_output, (gpointer *)wed );
worker->state = WORKER_STATE_RUNNING;