Changes in unix.c [21d09ac:7b23afd]
Legend:
- Unmodified
- Added
- Removed
-
unix.c
r21d09ac r7b23afd 36 36 37 37 static void sighandler( int signal ); 38 gboolean bitlbee_dirty_workaround( gpointer data ); 38 39 39 40 int main( int argc, char *argv[] ) … … 47 48 48 49 log_init( ); 49 nogaim_init( ); 50 50 51 nogaim_init(); 52 51 53 CONF_FILE = g_strdup( CONF_FILE_DEF ); 52 54 … … 94 96 log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE ); 95 97 98 /* Workaround against runaway problems. Bah, this is really dirty, 99 but in the end not really different from the <=0.91 situation, 100 which makes it an acceptable temporary "solution". */ 101 // g_timeout_add( 0, bitlbee_dirty_workaround, NULL ); 102 96 103 g_main_run( global.loop ); 97 104 98 105 return( 0 ); 99 106 } 107 108 gboolean bitlbee_dirty_workaround( gpointer data ) 109 { 110 usleep( 50000 ); 111 return( TRUE ); 112 } 113 114 void proxyprofiler_dump(); 100 115 101 116 static void sighandler( int signal ) … … 127 142 } 128 143 } 144 #ifdef PROXYPROFILER 145 else if( signal == SIGXCPU ) 146 { 147 write_io_activity(); 148 proxyprofiler_dump(); 149 log_message( LOGLVL_ERROR, "Received SIGXCPU, dumping some debugging info." ); 150 exit( 1 ); 151 } 152 #endif 129 153 else if( signal != SIGPIPE ) 130 154 {
Note: See TracChangeset
for help on using the changeset viewer.