From 21d09ac864315f80ff42f5b403a22dd833d0dbbc Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 9 Nov 2005 02:02:05 +0100 Subject: Forgot to modify CHANGES again, and removed some more debugging code we don't need anymore (and didn't want to have in a release in the first place...) --- unix.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'unix.c') diff --git a/unix.c b/unix.c index 33d34c9f..c4b3975e 100644 --- a/unix.c +++ b/unix.c @@ -35,7 +35,6 @@ global_t global; /* Against global namespace pollution */ static void sighandler( int signal ); -gboolean bitlbee_dirty_workaround( gpointer data ); int main( int argc, char *argv[] ) { @@ -94,24 +93,11 @@ int main( int argc, char *argv[] ) if( help_init( &(global.help) ) == NULL ) log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE ); - /* Workaround against runaway problems. Bah, this is really dirty, - but in the end not really different from the <=0.91 situation, - which makes it an acceptable temporary "solution". */ - // g_timeout_add( 0, bitlbee_dirty_workaround, NULL ); - g_main_run( global.loop ); return( 0 ); } -gboolean bitlbee_dirty_workaround( gpointer data ) -{ - usleep( 50000 ); - return( TRUE ); -} - -void proxyprofiler_dump(); - static void sighandler( int signal ) { /* FIXME: In fact, calling log_message() here can be dangerous. But well, let's take the risk for now. */ @@ -140,15 +126,6 @@ static void sighandler( int signal ) raise( signal ); } } -#ifdef PROXYPROFILER - else if( signal == SIGXCPU ) - { - write_io_activity(); - proxyprofiler_dump(); - log_message( LOGLVL_ERROR, "Received SIGXCPU, dumping some debugging info." ); - exit( 1 ); - } -#endif else if( signal != SIGPIPE ) { log_message( LOGLVL_ERROR, "Fatal signal received: %d. That's probably a bug.", signal ); -- cgit v1.2.3