I'm trying to be warned when a serial is disconnected from
modem.
There is a problem.
in at2_write_line
debug("bb.smsc.at2", 0, "AT2: Before write"); s = write(privdata->fd, octstr_get_cstr(linestr), count); debug("bb.smsc.at2", 0, "AT2: After write"); If I disconnect the modem from serial, in the log I see AT+CSQ (my keepalive) then I see "Before write" and never see "After write", so I'm sure write stays there and freezes the thread. How to solve this? Maybe is only related to cygwin? Is any IO include to change timeout? Thanks Andrea |