Bug 4336 - screeen -wipe doesn't work for named screens
screeen -wipe doesn't work for named screens
Product: Red Hat Raw Hide
Classification: Retired
Component: screen (Show other bugs)
i386 Linux
low Severity low
: ---
: ---
Assigned To: Bill Nottingham
Depends On:
  Show dependency treegraph
Reported: 1999-08-03 17:40 EDT by Jay Freeman
Modified: 2014-03-16 22:09 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-08-31 10:58:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jay Freeman 1999-08-03 17:40:50 EDT
Example #1:

[root(2)@ironclad RPMs]# screen -r rawhide
There is a screen on:
        12107.rawhide   (Dead ???)
Remove dead screens with 'screen -wipe'.
There is no screen to be resumed matching rawhide.
[root(2)@ironclad RPMs]# screen -wipe
There are screens on:
        12107.rawhide   (Remote or dead)
        12410.mirror    (Remote or dead)
2 Sockets in /root/.iscreen.

Example #2:

[root(2)@ironclad RPMs]# screen top
[root(2)@ironclad RPMs]# screen -S top top
[root(2)@ironclad RPMs]# ps ax | grep top
 5223 ?        S      0:00 SCREEN top
 5224 pts/3    S      0:03 top
 5228 ?        S      0:00 SCREEN -S top top
 5229 pts/4    S      0:02 top
 5237 pts/2    S      0:00 grep top
[root(2)@ironclad RPMs]# kill -9 5223 5228
[root(2)@ironclad RPMs]# screen -ls
There are screens on:
        5223.pts-2.ironclad     (Dead ???)
        5228.top        (Remote or dead)
Remove dead screens with 'screen -wipe'.
2 Sockets in /root/.iscreen.
[root(2)@ironclad RPMs]# screen -wipe
There are screens on:
        5223.pts-2.ironclad     (Removed)
        5228.top        (Remote or dead)
1 socket wiped out.
1 Socket in /root/.iscreen.
Comment 1 Jeff Johnson 1999-08-20 19:42:59 EDT
Does this problem persist in the latest screen-3.9.4 from Raw Hide?
Comment 2 Jeff Johnson 1999-08-23 19:35:59 EDT
Yes, the problem persists in screen-3.9.4.
Comment 3 Jay Freeman 1999-08-25 01:22:59 EDT
Sorry, have had a hard time checking e-mail lately, upgraded my
motherboard and luck would have it my harddrive went bad too.

From what I can tell, the problem is simply in how screen keeps track
of information, in the filenames of the pipes.  It performs the
following check to see if it is a Remote socket or a Dead socket:

  if (matchlen || (*n == '.' && n[1] && strncmp(HostName, n + 1,
strlen(n + 1)) == 0))

Named sockets don't include the terminal nor the hostname in the
filename, therefor causing the local hostname check to fail.  A
possible solution to this is to modify screen to store the name of
the screen after (or before, whatever) the existing terminal and
hostname data as opposed to replacing it.  That way it could perform
that check just like it is, and continue to work without MAJOR design
modifications.  (This might be something for the screen people though
since it isn't really a bug as much as a misplaced feature.)
Comment 4 Bill Nottingham 1999-08-31 10:58:59 EDT
As this is more of a 'feature request' than a bug, we probably won't
fix this here - contacting the screen developers would be your
best bet.

Note You need to log in before you can comment on or make changes to this bug.