aboutsummaryrefslogtreecommitdiffstats
path: root/src/main_notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_notify.c')
-rw-r--r--src/main_notify.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main_notify.c b/src/main_notify.c
index 2c546633d..04ceac62d 100644
--- a/src/main_notify.c
+++ b/src/main_notify.c
@@ -24,6 +24,8 @@
#include "gcc.h"
#include "log.h"
+pthread_t main_task;
+
static struct ioOps main_notify_IO;
static int main_pipe[2];
@@ -55,6 +57,7 @@ static int ioops_consume(int fd_count, fd_set * rfds,
void init_main_notify(void)
{
+ main_task = pthread_self();
init_async_pipe(main_pipe);
main_notify_IO.fdset = ioops_fdset;
main_notify_IO.consume = ioops_consume;