Skip to content
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

change mode on socket on detach #17

Closed
anarcat opened this issue Feb 17, 2019 · 2 comments
Closed

change mode on socket on detach #17

anarcat opened this issue Feb 17, 2019 · 2 comments

Comments

@anarcat
Copy link

anarcat commented Feb 17, 2019

it would be nice if detach would allow for a way to figure out if a session is attached or not. screen uses the execute bit on the socket to document this: when a session is attached, it's executable, when it's not, it's not.

irssi can use that to automatically mark users as away for example.

@mrichar1
Copy link

It appears that this behaviour is already present in dtach:

$ dtach -A foo.sock bash
$ ls -l foo.sock
srwx------ 1 mrichar1 mrichar1 0 Nov 12 19:57 foo.sock
<ctrl-\>
$ ls -l foo.sock
srw------- 1 mrichar1 mrichar1 0 Nov 12 19:57 foo.sock

@anarcat
Copy link
Author

anarcat commented Nov 13, 2019

well dang. i could have sworn that wasn't the case. now i can write an irssi plugin, thanks! irssi/scripts.irssi.org#677

@anarcat anarcat closed this as completed Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants