Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost ASIO 1.66 serial port open seem to never fail opening (at least the way i'm using it)
From: Sergei Nikulov (sergey.nikulov_at_[hidden])
Date: 2018-01-11 14:58:20


2018-01-11 12:12 GMT+03:00 Mathieu Peyréga via Boost-users
<boost-users_at_[hidden]>:
> Hello,
>
> i'm using boost asio 1.66 serial port on a Ubuntu Mate 64 machine, and I
> facing the fact that open("port name", error_code) command on an already
> openned port do not return an error.
>

Could you please check the previous release of Boost?

For example, in my case, version 1.65.1 used on CentOS Linux release
7.4.1708 (Core).

If ttyS0 opened with screen (screen /dev/ttyS0 115200) ASIO will not
open it with error

$ sreqrep /dev/ttyS0 "%%"
[2018-01-11 17:49:30.868] [serial] [error] Error: Device or resource busy
$

If your case related only to 1.66, then it'll be possible regression bug.

-- 
Best Regards,
Sergei Nikulov

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net