SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Over the past six days of uptime I have noticed two peculiar things.
1) I have "stale" gnome-terminals showing in the "who" list. That is, at some point I was in Gnome and using a gnome-terminal...but when I "exit"ed ... the terminal still shows in the who list. Furthermore, the PIDs associated with these terminals do not even exist in the /proc filesystem or in ps -A. How the heck do I remove these things without restarting the machine? (NOTE: the two "stale" terminals are pts/4 and pts/171 in the output below)
2) Regarding these gnome-terminals...notice the pts/# in the below results? I assure you I have not opened 170+ gnome terminals since I rebooted this machine six days ago. Sometimes I'll open a gnome-terminal and the pts/# will be like 40 higher than the last time I opened a terminal. Is this a sign of being hacked? It doesn't make sense to me as I thought all the pts/#'s were supposed to increment by one each time a new virtual terminal is opened.
---------------------some commands/output below:
bash-2.05b# who -u
bob tty1 Mar 27 06:34 01:32 4479
bob tty2 Mar 25 18:06 old 1166
bob pts/4 Mar 26 18:06 ? 3549 (:0.0)
bob pts/171 Mar 30 18:34 ? 22868 (:0.0)
bob pts/174 Mar 31 18:47 . 24711 (:0.0)
bash-2.05b# kill 3549
bash: kill: (3549) - No such process
bash-2.05b# kill 22868
bash: kill: (22868) - No such process
I don't really have an answer to why your gnome-terminals would be lingering around but I will tell you this, last time I used gnome-terminal, it would make my machine hang for a few seconds to 15 seconds where I couldn't do anything with the terminal and would do the same when exiting it. I never checked whether or not it left behind a dead process but I've never been a fan of gnome-terminal as its just simply utter crap. Does it do this if you use any other terminal, like xterm or aterm, etc?
I was using Slackware 9.1 at the time and no other app or terminal would hang like gnome-terminal. Since I never really use it though, I never bother troubleshooting.
Originally posted by GaMMa I'm having the same problem I believe although I think X is leaving the stale pts around. I don't know how to kill them without rebooting either...
I've been using xterm since this thread and I haven't had any dead terminal processes yet. You may want to give it a try.
Nope killing X is what caused the extra pts in the first place.. restarting added more. I'm using aterm right now ATM.. The thing that keeps me using gnome-terminal is the antialiased fonts, which the other terms don't do and also the transparency on the gnome-terminals is cool. See my screenshots to see what I'm talking about. I can tint it a cool shade of white...
gotta admit I'm not a fan of KDE either but I have it installed on my system despite the fact I don't use it (other than KPPP, what's the alternative btw? ). I find it hard to believe gnome-terminal is the only x-terminal that supports anti-aliased fonts but after a quick google I can't seem to find any
To get rid of the entries in the who list just delete it - it's located in /var/run/utmp. Of course, this deletes *all* entries in the who list, so doing who afterwards will display just nothing.
You must recreate an empty /var/run/utmp file (touch /var/run/utmp; chown root.tty /var/run/utmp) or all future logins won't appear in the who list either.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.