aboutsummaryrefslogtreecommitdiffstats
path: root/bitlbee.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-11-28 23:24:26 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2007-11-28 23:24:26 +0000
commitb6a2373c2c9a98594a87c54a4644f3c0e985e420 (patch)
tree30f5bc8dace53475b4726e4e613e0aefb95640fb /bitlbee.c
parent221a27346f768b9626f2a0281ff774790858a0c2 (diff)
Fixed the epoll+ForkDaemon combination. The libevent event handling
didn't work very well on Linux 2.6 (and possibly others) in ForkDaemon mode.
Diffstat (limited to 'bitlbee.c')
-rw-r--r--bitlbee.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitlbee.c b/bitlbee.c
index 3d8a0310..3f488b46 100644
--- a/bitlbee.c
+++ b/bitlbee.c
@@ -292,6 +292,8 @@ static gboolean bitlbee_io_new_client( gpointer data, gint fd, b_input_condition
get the same random numbers as the parent/siblings. */
srand( time( NULL ) ^ getpid() );
+ b_main_init();
+
/* Close the listening socket, we're a client. */
close( global.listen_socket );
b_event_remove( global.listen_watch_source_id );