Branch: Tag:

1998-10-16

1998-10-16 15:34:58 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added a few set_nonblocking(0,0,0) of paranoia reasons.

Rev: lib/modules/Protocols.pmod/Line.pmod:1.7

1:   /* -  * $Id: Line.pmod,v 1.6 1998/10/16 00:08:11 nisse Exp $ +  * $Id: Line.pmod,v 1.7 1998/10/16 15:34:58 grubba Exp $    *    * Line-buffered protocol handling.    *
26:    {    if (con) {    catch { +  con->set_nonblocking(0,0,0); // Make sure all callbacks are cleared. +  }; +  catch {    con->close();    };    catch {
167:    if (handle_data || sizeof(read_buffer) || sizeof(multi_line_buffer)) {    werror("close_callback(): Unexpected close!\n");    } +  con->set_nonblocking(0,0,0); // Make sure all callbacks are cleared.    con->close();    con = 0;    }