There was an error while loading. Please reload this page.
1 parent 2d171f9 commit df2ce36Copy full SHA for df2ce36
ext/lxc/lxc.c
@@ -109,7 +109,7 @@ lxc_run_command(VALUE self, VALUE rb_command)
109
cmd.argv = ruby_to_c_string_array(rb_command);
110
111
ret = lxc_attach_run_command(&cmd);
112
- if (ret == -1)
+ if (ret == -1 || ret == 126 || ret == 127)
113
rb_raise(Error, "unable to run command on attached container");
114
/* NOTREACHED */
115
return Qnil;
0 commit comments