[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Upgrade to Buster and perl Device::SerialPort



On Wed, Jul 10, 2019 at 07:53:23PM -0700, David Christensen wrote:
> On 7/10/19 10:39 AM, Martin McCormick wrote:
> >David Christensen <dpchrist@holgerdanske.com> writes:

[...]

Good points all around.

> I would check for existence of the device (-e) and die if not present.

Perhaps even check whether the device is character special (-c): ISTR
the code tries to do some stty stuff which will fail otherwise.

OTOH it would preclude you to run the code (e.g. as a test) against a
FIFO: but then the failed attempt at stty should be non-fatal.

Cheers
-- t

Attachment: signature.asc
Description: Digital signature


Reply to: