diff options
Diffstat (limited to 'src/sig_handler.c')
-rw-r--r-- | src/sig_handler.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sig_handler.c b/src/sig_handler.c index ce793b2..59fc461 100644 --- a/src/sig_handler.c +++ b/src/sig_handler.c @@ -2,10 +2,10 @@ * rharchive * * The Radio Helsinki Archive Daemon - * * - * Copyright (C) 2010-2011 Christian Pointner <equinox@helsinki.at> - * + * + * Copyright (C) 2010-2014 Christian Pointner <equinox@helsinki.at> + * * This file is part of rharchive. * * rharchive is free software: you can redistribute it and/or modify @@ -87,18 +87,18 @@ static gpointer signal_thread_func(gpointer data) } } } - - return NULL; + + return NULL; } int signal_start(GMainLoop *loop) { - g_assert(!signal_thread); + g_assert(!signal_thread); + + signal_thread = g_thread_create_full(signal_thread_func, loop, 8192, FALSE, TRUE, G_THREAD_PRIORITY_HIGH, NULL); + if(!signal_thread) + return -1; - signal_thread = g_thread_create_full(signal_thread_func, loop, 8192, FALSE, TRUE, G_THREAD_PRIORITY_HIGH, NULL); - if(!signal_thread) - return -1; - return 0; } |