X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/a83971b64b0b20f6774cf3ccedd05202ad0bdb0e..070ae4ab75671d43ff36f02f9773c3a23c2bd345:/lserial.pas?ds=sidebyside diff --git a/lserial.pas b/lserial.pas index e7b6d27..4f13fce 100755 --- a/lserial.pas +++ b/lserial.pas @@ -1,4 +1,4 @@ -{$mode delphi} +{$mode delphi} unit lserial; interface uses @@ -26,7 +26,7 @@ var config : termios; baudrateos : longint; begin - fd := fpopen(device,O_RDWR or O_NOCTTY); + fd := fpopen(device,O_RDWR or O_NOCTTY or O_NONBLOCK); if isatty(fd)=0 then begin writeln('not a tty'); @@ -68,4 +68,4 @@ begin dup(fd); closehandles := true; end; -end. \ No newline at end of file +end.