aboutsummaryrefslogtreecommitdiffstats
path: root/unix.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-06-21 18:34:33 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-06-21 18:34:33 +0200
commitb72caac09b5944ee9954eb18262fe45228665570 (patch)
treeb44353f8ab3d23702f49e129d53b787952fe6546 /unix.c
parent3af70b06b2f0fb0fb41a041f6d86e3711b9eea3f (diff)
parentdf417ca6657bc824e1dbd4a6026284656a42ce40 (diff)
Merging libevent branch: Events can now be handles by both glib and libevent.
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix.c b/unix.c
index 89bd65bf..360281ee 100644
--- a/unix.c
+++ b/unix.c
@@ -46,7 +46,7 @@ int main( int argc, char *argv[], char **envp )
memset( &global, 0, sizeof( global_t ) );
- global.loop = g_main_new( FALSE );
+ b_main_init();
log_init();
@@ -116,7 +116,7 @@ int main( int argc, char *argv[], char **envp )
if( help_init( &(global.help) ) == NULL )
log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE );
- g_main_run( global.loop );
+ b_main_run();
if( global.restart )
{
@@ -164,7 +164,7 @@ static void sighandler( int signal )
the user data now (not to mention writing them to disk), so add a timer. */
log_message( LOGLVL_ERROR, "SIGTERM received, cleaning up process." );
- g_timeout_add_full( G_PRIORITY_LOW, 1, (GSourceFunc) bitlbee_shutdown, NULL, NULL );
+ b_timeout_add( 1, (b_event_handler) bitlbee_shutdown, NULL );
first = 0;
}