write

"Andrea Viscovich" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
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

Dott. Andrea Viscovich
Direct Line: +39 041 2574825
Email2Mobile: [email protected]
Web: http://www.smsprof.it
email :[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.