-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Script stuck (cannot ctrl-C to quit) when DNS resolution hang (using remote()
)
#2540
Comments
@Arusekk said
It's really hard to test, or at least unreliable to test a DNS resolution failure. In the meantime I've just tried But I still think the problem is that the
|
Maybe we can set SIGINT handler to SIG_DFL as a workaround? |
If you truly want to reproduce the issue, you could setup a fake DNS server that does nothing
You mean to change and restore SIGINT handler before and after resolving DNS? |
remote()
)remote()
)
remote()
)remote()
)
Debug Output
Having the extra debug output really helps us, and might help you diagnose the problem yourself.
The command is stuck around 30 seconds before quitting.
Expectaion
I would like to use ctrl-C to quit immediately in these cases.
Verify on Ubuntu
I'm using Debian Sid (Latest) if it worths mentioning.
The text was updated successfully, but these errors were encountered: