Changeset 6f6725c


Ignore:
Timestamp:
2014-11-26T05:25:00Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
7233f68
Parents:
9f8bb17
Message:

Use irc_write_all() to send the message in bitlbee_shutdown

This ensures that the message arrives by using the "now" parameter of
irc_write_all(), because in my testing it didn't show up (even though
surrounding it with printf() worked, in inetd mode)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bitlbee.c

    r9f8bb17 r6f6725c  
    362362gboolean bitlbee_shutdown( gpointer data, gint fd, b_input_condition cond )
    363363{
     364        /* Send the message here with now=TRUE to ensure it arrives */
     365        irc_write_all( TRUE, "ERROR :Closing link: BitlBee server shutting down" );
     366
    364367        /* Try to save data for all active connections (if desired). */
    365368        while( irc_connection_list != NULL )
    366                 irc_abort( irc_connection_list->data, TRUE,
    367                            "BitlBee server shutting down" );
     369                irc_abort( irc_connection_list->data, TRUE, NULL );
    368370       
    369371        /* We'll only reach this point when not running in inetd mode: */
Note: See TracChangeset for help on using the changeset viewer.