Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
*/
package org.jruby.truffle.runtime;

import jnr.constants.platform.Errno;
import jnr.constants.platform.Fcntl;
import jnr.constants.platform.OpenFlags;
import jnr.posix.FileStat;
@@ -161,6 +162,10 @@ public int pread(int fd, byte[] buf, int n, int offset) {
return -1;
}

if (read == -1) {
errno(Errno.ETIMEDOUT.intValue());
}

return read;
}

0 comments on commit 103562b

Please sign in to comment.