[Conexus-devel] [ conexus-Conexus Bugs-1819652 ] Bugs in serial.cpp
Status: Beta
Brought to you by:
rvinyard
From: SourceForge.net <no...@so...> - 2007-10-25 15:47:00
|
Conexus Bugs item #1819652, was opened at 2007-10-24 16:49 Message generated for change (Settings changed) made by rvinyard You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=936877&aid=1819652&group_id=151197 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Tobin (tobin_79) >Assigned to: Rick L. Vinyard, Jr. (rvinyard) Summary: Bugs in serial.cpp Initial Comment: There are two errors in the serial.cpp. 1. The constructor don't store the mode into the member m_mode. 2. The memberfunction ... overwrites the m_mode in case of device != d even if mode flag SERIAL_UNCHANGED is set. So the example: "examples/serial/serial_send" fails with: terminate called after throwing an instance of 'Conexus::exception::write::bad_fd' what(): conexus:write:errno[9]: sockfd is not a valid descriptor. I have attatched a little diff file to patch this. Kind regards Tobin ---------------------------------------------------------------------- Comment By: Tobin (tobin_79) Date: 2007-10-24 16:53 Message: Logged In: YES user_id=1885804 Originator: YES I am sorry, the member function of the bug 2 is "Serial::set_device". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=936877&aid=1819652&group_id=151197 |