Skip to content

Commit 26b2f56

Browse files
committed
FEAT: not throwing error when QUERY on INPUT port is run in a script not running in terminal (Travis)
1 parent 32732d4 commit 26b2f56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/p-console.c

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
return R_RET;
140140
}
141141
if (OS_DO_DEVICE(req, RDC_QUERY) < 0) {
142+
if(req->error == 25) return R_NONE; //Inappropriate ioctl for device (not running in terminal)
142143
SET_INTEGER(arg, req->error);
143144
Trap1(RE_PROTOCOL, arg);
144145
//return R_NONE;

0 commit comments

Comments
 (0)