New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error when using with OpenResty cli #60
Comments
This is an issue with the Given that In any case, this is not a luacov issue, so I think we can safely close this one. :) |
Yes obviously that is the case. My point would be that we do not need "*a", just reading the first line (default behaviour of read iirc) should be enough. |
There is another series of patches addressing this (we reverted the retry on EINTR patch in LuaJIT). See openresty/lua-nginx-module#1296 and other linked PRs. While the retry on EINTR patch could have been an issue in other applications embedding LuaJIT (I don't really think so), the SA_RESTART flag does not prevent the correct handling of SIGINT within Nginx as far as I remember. |
If the workaround in luacov is so small and still reliable I think it's worth applying. |
@thibaultcha thanks for the update! that does sound like a good approach indeed. @mpeterv @Tieske I don't think this is a reliable solution — it makes the problem less likely to hit, but I think it's still prone to EINTR. Still, the change is harmless so why not. |
see lunarmodules#60. This will most likely not prevent the issue, but reduce the probability of it occurring .
in function get_cur_dir I'm getting this error (I isolated it to the resty cli tool):
Somehow
read("*a")
fromio.popen
triggers the error, whereread()
succeedsThe text was updated successfully, but these errors were encountered: