-
Notifications
You must be signed in to change notification settings - Fork 15
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
sleep() before interactive() causes freeze #19
Comments
Interesting from a first glance,
Agree, but ... |
Do you repeatedly get such a result? Because I am getting the output without any blocking.
|
Are you on Lines 384 to 399 in 3573e41
|
Yes, the above results were on |
Could you clone the repository and run cargo test? |
Will do... |
|
Could you run |
It froze here. I waited for more than 5 minutes, but it didn't continue. |
I see
|
Froze! Waited more than 5m.
|
Thank you |
Just for an update. Haven't yet cracked this issue. It seems like on |
Once again just for an update, But it is 100% related to a core Only found a similar issue in a creack/pty#101 |
So it was a while :) But I guess I figure something out 😄 The issue was not why it doesn't work on Have no clue yet why. But essentially when process is exists. on linux we get a error in such case but on macos and freebsd we get nothing just an empty stream of data. I would say we can't do anyting with this at least I don't yet see. I'll update the doc of interact function accordingly. But overall that's it. No surprises 😞 PS: My comment about not stopped |
The code below run as expected, printing the
git diff
help, thenresult StillAlive
, then exiting.This code freezes, printing nothing and not exiting:
Hitting return causes the program to continue as before. It seems like the delay is causing
expectrl
to enter the interactive mode in a blocking way, but that's not quite right because interactive mode should require ^] to exit, not just a return. Also, there's no input command here awaiting a return.The expected behavior would be that the output is exactly as before but delayed 300ms.
The text was updated successfully, but these errors were encountered: