X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/a83971b64b0b20f6774cf3ccedd05202ad0bdb0e..0c9341fb9508e6dc82fb3dd32324b26c74afe3fd:/lserial.pas?ds=inline diff --git a/lserial.pas b/lserial.pas old mode 100755 new mode 100644 index e7b6d27..4f13fce --- 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.