You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I frequently launch tig in order to copy a sha [1] and then exit with the intent of pasting it on the command line with shift+insert. This stopped working a while ago and I finally got around to bisecting it to this commit, ccbda97. This is surprising to me as I'd expect (and a cursory read of src/io.c appears to confirm) that tig would fairly quickly cleanup any launched shell command on exit.
Note that prior to exiting tig the clipboard does indeed contain the sha I intend to copy. It's only cleared when I exit tig.
This is relatively important to me so I'll happily keep digging as time permits but any guidance would be helpful.
The default action is to silently wait in the background for X selection requests (pastes) until another X application places data in the clipboard, at which point xclip exits silently.
So this makes complete sense and corrects my understanding of how xclip actually works. However, it's probably not what people following the wiki will expect. On Linux systems I'd suggest that using atexit and killing the entire process group is a pretty massive hammer when PR_SET_PDEATHSIG is available, but I can see why it was used for simplicity and simplicity.
The quickest "fix" is to probably just update the documentation to call xclip with setsid which will put the xclip daemon in a new session, and hence, process group.
I frequently launch tig in order to copy a sha [1] and then exit with the intent of pasting it on the command line with shift+insert. This stopped working a while ago and I finally got around to bisecting it to this commit, ccbda97. This is surprising to me as I'd expect (and a cursory read of src/io.c appears to confirm) that tig would fairly quickly cleanup any launched shell command on exit.
Note that prior to exiting tig the clipboard does indeed contain the sha I intend to copy. It's only cleared when I exit tig.
This is relatively important to me so I'll happily keep digging as time permits but any guidance would be helpful.
The text was updated successfully, but these errors were encountered: