diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2005-11-09 02:02:05 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2005-11-09 02:02:05 +0100 |
commit | 21d09ac864315f80ff42f5b403a22dd833d0dbbc (patch) | |
tree | d6ef352a0ab6ccb89909e1727da0bf6b0819ac33 /unix.c | |
parent | 68b50b5f367de68ca334bb83bf200a3406990410 (diff) |
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...)
Diffstat (limited to 'unix.c')
-rw-r--r-- | unix.c | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -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 ); |