-{$mode delphi}
+{$mode delphi}\r
unit lserial;\r
interface\r
uses \r
config : termios;\r
baudrateos : longint;\r
begin\r
- fd := fpopen(device,O_RDWR or O_NOCTTY);\r
+ fd := fpopen(device,O_RDWR or O_NOCTTY or O_NONBLOCK);\r
\r
if isatty(fd)=0 then begin\r
writeln('not a tty');\r
dup(fd);\r
closehandles := true;\r
end;\r
-end.
\ No newline at end of file
+end.\r