Skip to content

Commit

Permalink
Just let the catch-all handle the errno zero case
Browse files Browse the repository at this point in the history
  • Loading branch information
cbm755 committed Nov 12, 2024
1 parent 62ce9d4 commit 7604e5f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions inst/private/readblock.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@
done = true;
end

elseif (errno () == EAGAIN || errno () == EINVAL || errno () == 0)
if (errno () >= 0)
warning ('OctSymPy:readblock:invaliderrno', ...
'error with errno = 0: shouldn''t that be impossible?')
end
elseif (errno () == EAGAIN || errno () == EINVAL)
% with these coefficients, we check about 90 times before the display
% starts at 8 seconds; at that time the waitdelta is approx 1 second.
% We cap the waiting at 1 second (Issue #1255).
Expand All @@ -91,7 +87,7 @@
else
warning ('OctSymPy:readblock:invaliderrno', ...
sprintf('readblock: s=%d, errno=%d, perhaps error in the command?', s, errno()))
pause(0.1) % FIXME; replace with waitdelta etc
pause (1)
end
%disp('paused'); pause

Expand Down

0 comments on commit 7604e5f

Please sign in to comment.