SetText hangs indefinitely on Linux
See original GitHub issueI’m not sure how no-one has noticed this yet, but here it is…
Since #137 was merged, the bashrunner xclip process (when calling SetText
) never returns until copying something to the clipboard (e.g. pressing CTRL+C
).
This is expected behavior since the xclip -loops
option is set to 0
by default and xclip does not close stdout.
From the man page:
-l, -loops
number of X selection requests (pastes into X applications) to wait for before exiting, with a value of 0 (default)
causing xclip to wait for an unlimited number of requests until another application (possibly another invocation of
xclip) takes ownership of the selection
The solution seems to be adding -loops 1
to the command, but I’m not sure if this creates other problems…
A different solutions is using xsel
since it immediately closes stdout after forking.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
openssh - ssh command hangs indefinitely
I am trying to ssh into my ubuntu 18.04 remotely and my ssh command execution hangs after the password is authenticated.
Read more >Why does dig utility hang indefinitely even with timeout ...
I would use an external utility to kill it after some time just in case, for the problematic situations where it hangs. As...
Read more >SSH Command Execution Hangs, although interactive ...
And there it hangs, indefinitely. When I ssh without a command into my remote server, however, I get an interactive shell and all...
Read more >Why do consoles sometimes hang forever when SSH ...
The long-hang behavior on communication issues is not a bug, the SSH session is hanging out hoping the other side will come back....
Read more >networking - Curl response hangs
When I try, curl hangs before displaying the response and exiting. This is what I run: curl -vvv site1.dev/. This is the output...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
happy to accept that as a change. but first can u share a failing unit test that illustrates this issue
This is fixed with #345.
Thank you @mcon