X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/a83971b64b0b20f6774cf3ccedd05202ad0bdb0e..2c3a30778bb5a281c10736470058b5a63575a516:/lserial.pas 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.