________________________________
De: Thomas Cameron <thomas.cameron(a)camerontech.com>
Para: users(a)lists.fedoraproject.org
Enviado: Sábado, 28 de enero, 2012 14:16:33
Asunto: Why do e.g. ssh sessions hang when I try to log out?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've noticed this a lot recently. I want to run an X app off another
machine, say thunderbird. So I do "ssh -X user@host" to log in and run
thunderbird from the command line. When I get done, I exit thunderbird
and get a command prompt back. Then when I hit ctrl-D or type "exit"
or whatever, the session hangs. When I hit ctrl-C it finally exits.
As a test, I just did this against my local F16 machine, and I tried
to log out after using thunderbird as a different user.
I see that I have these processes running as my user:
tcameron 5615 0.0 0.0 22356 764 ? S 14:10 0:00
dbus-launch --autolaunch 812e3e28dfa6439dcc2013e
tcameron 5616 0.1 0.0 29932 1156 ? Ssl 14:10 0:00
/bin/dbus-daemon --fork --print-pid 5 --print-ad
tcameron 5619 0.0 0.0 136548 2744 ? S 14:10 0:00
/usr/libexec/gconfd-2
So it appears that dbus is not letting me log out. This is merely an
annoyance, so I'm not sure it's really a bug. Even if it is, I'm not
sure it's worth reporting as a bug.
Anyone else notice this?
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iEYEARECAAYFAk8kV58ACgkQmzle50YHwaDXNQCeJCNN+tz4MKsh3i8LuPYfAHMO
kz4AnAiXopjfe86oXlgEB1w01TgYG4qd
=xm3I
-----END PGP SIGNATURE-----
--
users mailing list
users(a)lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines:
http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away:
http://ask.fedoraproject.org
This is not necessarily pretty, but it works. Add the following code to .bash_logout. It
will kill all processes you have open and then clear the screen. Your session will then
end.
[dennis@amor ~]$ cat .bash_logout
# ~/.bash_logout
for p in `ps | awk '{print $1}'`
do
if [[ "$p" =~ ^[0-9]+$ ]]
then
kill $p
fi
done
/usr/bin/clear
[dennis@amor ~]$