Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh -X, how to force termination

Reply
Thread Tools Display Modes

ssh -X, how to force termination

 
 
Cacadril
Guest
Posts: n/a

 
      11-09-2008, 05:50 PM
When I start evolution (mail user agent) in a "ssh -X" session (i.e.,
with X forwarding), the ssh session does not terminate even I have
terminated both evolution and the shell.

I find that there is a process "dbus-launch" running, that keeps a
connection to the remote X server through the ssh forwarding. This
process has parent process 1, and no attached terminal. It is very
cumbersome to track it down and kill it before I exit the shell,
especially if there are other dbus-launch instances not related to my
ssh/evolution session.

Is there any easy way?

I have tried "~.", but that makes my local terminal hang, and I have
to open another local terminal to kill the ssh process.
I have tried "~&", but that leaves the ssh process running in the
background for ever.

I also tried

local> ssh -X -l <user> <host> dbus-lauch --exit-with-session
evolution &

but when I closed evolution, ssh still ran until I killed it.

However, this works reasonably well, if I only remember to do it that
way.:

local> ssh -X -l <user> <host>
remote> dbus-launch --exit-with-session evolution &
... # terminate evolution
remote> exit
local>

I can probably write a script to handle the messy details. However, it
still feels strange that there is no way to tell the ssh client that I
want to terminate the connection including all X connections. Have I
missed something?

Besides, should I report as a bug that evolution does not kill dbus-
launch on exit? (I could not even confirm that it is evo that starts
dbus-launch. I tried to run evolution under strace, but got a couple
of "PANIC" messages from strace about subprocesses exiting before
strace managed to attach (if that is what the messages meant).

Regards
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52136@gmail.com Windows Networking 0 01-14-2008 07:45 PM
Overcharge on Termination? GeoffO Broadband 2 11-26-2007 08:49 PM
V21 Changes T&Cs to include £70 Termination fee? Toaster Broadband 1 10-21-2006 09:37 AM
STP Termination Matthew Windows Networking 0 02-24-2005 04:03 PM
STP Termination Matthew Windows Networking 0 02-24-2005 04:03 PM



1 2 3 4 5 6 7 8 9 10 11