Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lseek() on serial port not allowed #20

Closed
jsolla opened this issue Nov 16, 2011 · 1 comment
Closed

lseek() on serial port not allowed #20

jsolla opened this issue Nov 16, 2011 · 1 comment

Comments

@jsolla
Copy link

jsolla commented Nov 16, 2011

I came here searching about node.js + serial port, so I'm a first-timer on node.js but I think there's a no-sense line on this file: serialport_native/serialport_native.cc

At line 47 you are using lseek() function on the serial port fd, and from "man lseek" I get this information:

ERRORS:
ESPIPE fildes is associated with a pipe, socket, or FIFO.

RESTRICTIONS:
Linux specific restrictions: using lseek on a tty device
returns ESPIPE.

Since serial ports are tty devices. What's the point on using lseek?

As far as I'm concerned, using read() on the serial port will empty the receive FIFO and you'll always get all the content.

@JayBeavers
Copy link
Collaborator

The file doesn't exist. The string lseek is not found in any of the current cpp source code.

@lock lock bot locked and limited conversation to collaborators Apr 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants