Skip to content

Instantly share code, notes, and snippets.

@Mouq
Created January 22, 2014 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mouq/8551748 to your computer and use it in GitHub Desktop.
Save Mouq/8551748 to your computer and use it in GitHub Desktop.
diff --git a/src/core/interp.c b/src/core/interp.c
index 5d8f0d5..12f19af 100644
--- a/src/core/interp.c
+++ b/src/core/interp.c
@@ -3234,10 +3234,12 @@ void MVM_interp_run(MVMThreadContext *tc, void (*initial_invoke)(MVMThreadContex
cur_op += 4;
goto NEXT;
OP(getstdin):
+ printf("getstdin error before? %s\n", strerror(errno));
if (!tc->instance->stdin_handle)
MVM_exception_throw_adhoc(tc, "STDIN filehandle was never initialized");
GET_REG(cur_op, 0).o = tc->instance->stdin_handle;
cur_op += 2;
+ printf("getstdin error after? %s\n", strerror(errno));
goto NEXT;
OP(getstdout):
if (!tc->instance->stdout_handle)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment