Beispiel #1
0
void set_end_sessions() {
   intr_flag = 3;
   if ( inpacket == 0 ) {
      end_sessions();
      cxtbuffer_write();
      intr_flag = 0;
      alarm(TIMEOUT);
   }
}
Beispiel #2
0
void set_end_sessions()
{
    config.intr_flag |= INTERRUPT_SESSION;

    if (config.inpacket == 0) {
        end_sessions();
        config.intr_flag &= ~INTERRUPT_SESSION;
    }
}