Comments (10)
Sorry for the late answer. Is this reproducible (did it happen more than once)? Why did the irssi (or abduco server process) die? Killing the ssh client should only affect the abduco client process.
I tried it with ping and as far as I can see, it worked as expected:
$ ssh server
$ abduco -c foo ping google.com
Then locally, I killed the ssh client and reconnect.
$ ssh server
$ abduco
Active sessions (on host optimus7.inf.ethz.ch)
Tue 2015-06-23 13:44:48 foo
As expected the session is still alive and no clients are connected i.e. no *
is displayed in the listing above.
$ abduco -a foo
[ ping output omitted]
...
CTRL+C
abduco: foo: session terminated with exit status 0
from abduco.
No, I guess I've only seen it once. Still have that broken session hanging around, though. I'll see if I can figure out a way to reproduce this.
from abduco.
Still have that broken session hanging around, though.
That is the socket still exists? Could you check whether some process still has it opened (using e.g. lsof
)?
I suspect that the abduco server process was killed with SIGKILL
(in which case the socket will not be deleted because the signal can not be handled) instead of the default SIGTERM
signal.
$ abduco -c sigterm ping google.com
$ killall abduco
$ abduco -c sigkill ping google.com
$ killall -9 abduco
$ abduco
Active sessions (on host debbook)
* Tue 2015-06-23 14:26:23 sigkill
$ abduco -a sigkill
attach-session: Connection refused
As you can see, the first session was properly cleaned up, however the latter seems analogous to your case.
At the moment I'm not sure how the cleanup procedure could be improved ...
from abduco.
Yeah, there's not much to do if you get SIGKILL
. I checked using lsof
and no process has the socket open. Any idea why abduco might have recieved SIGKILL
?
from abduco.
I just had this happen to me now. I was running abduco in an ssh session to a vm, and the host machine rebooted. When I started the vm back up, I was stuck with a non-terminated but unattachable abduco session as described above. The socket is still present in the ~/.abduco
directory.
from abduco.
Could you check whether the latest commits fix the issue? Such dead sockets should now be ignored. Only lightly tested though.
Adding @rpmohn since I know he is a heavy abduco user.
from abduco.
Works for me.
from abduco.
I haven't seen this, but I will pull the changes and test tomorrow.
from abduco.
I think this is fixed.
@rpmohn have you had time to test it in your AIX environment?
In general we have accumulated enough fixes and small improvements to warrant another release. Does current git HEAD work for you guys?
from abduco.
Working fine so far. I'll let you know if I have any problems.
from abduco.
Related Issues (20)
- Cannot scroll HOT 12
- Is abdcuo dead code base or in a need of maintainer? HOT 3
- Conflict with CMUS HOT 2
- RFE: session timeout
- Programmatically send keys to session HOT 6
- Various keys behaving funky (KEY_HOME, KEY_IC, etc.) HOT 1
- Feature request: Auto naming of sessions HOT 4
- Race condition between EOF & MSG_EXIT
- get current session HOT 2
- -f
- Active sessions depend on network connection on macOS
- Remotely run a command in running session an additional command on attach HOT 8
- Follow Freedesktop's XDG base directory specification
- Is there a way to share a session?
- detach not working on re-attach HOT 2
- Fhjjj
- History
- Crash ( all session gone) after `:update<CR>`
- Session missing after restart HOT 1
- Can't put file paths in session-name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abduco.