On Mon, Nov 13, 2006 at 04:30:07PM +0900, Henry Nelson wrote: > On Wed, Oct 04, 2006 at 06:23:49PM +0200, Julien Jehannet wrote: > > >Date: Wed, 4 Oct 2006 09:36:36 +0900 > > >From: Henry Nelson > > >Subject: terminal devices left open after logging out > > > > > >I'm not sure of the terminology so the Subject and description of the > > >problem may not be accurate. What happens is that _sometimes_ when I > > >login, by ssh, a terminal device grabbed by some previous screen session > > >is still there. So if I run `who` I see the device, but no one is > > >logged into it, and no screen sockets are open. There doesn't seem to be > > >any way to close the device other than rebooting the machine. > > > > > >% who > > >henry ttyp0 Oct 4 09:17 (192.168.11.24) > > >henry ttyp3 Oct 1 07:21 (:ttyp0:S.0) > > >% screen -list > > >No Sockets found in /home/henry/.screen. > > > > > >How can I prevent this from happening, and/or can I somehow clean up > > >unused terminal devices (ttyp?) that are open without rebooting? TIA. > > > > I think is more related to SSH than screen. You can try to send HUP > > signals to your weird processes. If it works, see this FAQ entry for > > The thing is there don't seem to be any processes going. Normally when > I try to exit the shell or logout with processes running, it won't let me; > there is some message like "there are processes running". Also, 'ps' > doesn't show any processes that are still running from a previous session. > > > http://www.openssh.org/faq.html#3.10 > > Thanks much! This is the first real hint I've gotten. I'll keep an > eye out for this. Unfortunately I use csh, and I didn't see a work- > around for it (only bash, zsh and pdksh).
I often use detach ( http://detach.sourceforge.net/ ) when starting programs that should run in the background / as a daemon. This will work regardless of what your shell is. -- Jan Thomas Moldung _______________________________________________ screen-users mailing list [email protected] http://lists.gnu.org/mailman/listinfo/screen-users
