public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Doug Morse <dm@dougmorse.org>
To: cygwin@cygwin.com
Subject: GNU screen on Cygwin: Cannot seem to reattach, no matter what I try
Date: Sun, 08 May 2011 19:40:00 -0000	[thread overview]
Message-ID: <20110508194037.GA15550@ikrg.com> (raw)

Hi,

Any assistance most appreciated (see below)!

Thanks,
Doug


----- Forwarded message from Doug Morse <doug.morse@vanderbilt.edu> -----

Date: Sat, 07 May 2011 16:06:48 -0500
From: Doug Morse <doug.morse@vanderbilt.edu>
To: Andrew Schulman <schulman.andrew@epamail.epa.gov>
Subject: GNU screen on Cygwin: Cannot seem to reattach, no matter what I try

Hi Andrew,

Thanks so much for your efforts to port and maintain the GNU screen 
program to Cygwin!   I used to use screen all the in the pre-GUI days, 
and now I use ssh regularly for the occasions I need to run something on 
a real win32 or win64 platform.  Being able to use screen again would be 
great, especially because I routinely get disconnected from one machine 
in particular due to a lousy DSL line.

At any rate, although I can run screen just fine, I cannot reattach, no 
matter what I do, even when there's been no disconnect and I've simply 
manually detached (i.e., Ctrl-A d).  The session log below pretty much 
says it all.

Note that I move my .screenrc file out of the way to ensure I'm running 
with nothing but default settings.  Also, you'll notice in the output 
from "ps aux" that the "screen" process, once detached, has a tty value 
of "?", whereas all the others have a tty number.  Other than this, 
though, everything works just as one would expect.  Processes continue 
to run fine under screen even when detached: I simply just cannot 
reattach.  As you can also see below, doing a "kill -15" on screen 
causes it do a proper shutdown and remove the socket file.

Odd, very odd.

Any thoughts?

Finally, please pardon me in advanced if I should have posted this 
somewhere instead of emailing you directly.  I could not find a forum or 
irc or website indicating where to report this / ask for help.

Happy Weekend!

Thanks,
Doug


----- begin session log -----

morse@dougsdell ~> screen --version
Screen version 4.00.03 (FAU) 23-Oct-06
morse@dougsdell ~> uname -a
CYGWIN_NT-5.1 dougsdell 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin

morse@dougsdell ~> mv .screenrc screenrc
morse@dougsdell ~> screen                  [ <--- I press Ctrl-A d here ]
[detached]

morse@dougsdell ~> screen -r
There is a screen on:
There is no screen to be resumed.

morse@dougsdell ~> screen -ls
There is a screen on:
1 Socket in /tmp/uscreens/S-morse.
morse@dougsdell ~> l /tmp/uscreens/S-morse/
total 16
srw-r--r-- 1 morse None 0 May  7 15:45 3932.tty1.dougsdell
morse@dougsdell ~> screen -r 3932.tty1.dougsdell
There is a screen on:
There is no screen to be resumed matching 3932.tty1.dougsdell.

morse@dougsdell ~> ps aux
       PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
      2396       1    2396       2396  con 1005 22:59:53 /usr/bin/rxvt
I    2412    2396    2412       2428    0 1005 22:59:53 /usr/bin/bash
      2080    3408    2080       1780    1 1005 15:41:47 /usr/bin/bash
      3932       1    3932       3932    ? 1005 15:45:49 /usr/bin/screen
I    3376    3932    3376       3460    2 1005 15:45:49 /usr/bin/bash
      2168    2080    2168       2212    1 1005 15:46:32 /usr/bin/ps
morse@dougsdell ~> kill -15 3932
morse@dougsdell ~> ps aux
       PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
      2396       1    2396       2396  con 1005 22:59:53 /usr/bin/rxvt
I    2412    2396    2412       2428    0 1005 22:59:53 /usr/bin/bash
      2080    3408    2080       1780    1 1005 15:41:47 /usr/bin/bash
      2228    2080    2228       2076    1 1005 15:46:45 /usr/bin/ps
morse@dougsdell ~> screen -ls
No Sockets found in /tmp/uscreens/S-morse.
morse@dougsdell ~> l /tmp/uscreens/S-morse/
total 0

morse@dougsdell ~> echo "help! :)"
help! :)

----- end session log -----


----- End forwarded message -----

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

             reply	other threads:[~2011-05-08 19:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-08 19:40 Doug Morse [this message]
2011-05-08 21:12 ` Andrew Schulman
2011-05-09 14:37   ` Peter Li
2011-05-10 18:50   ` Doug Morse
2011-05-10 19:07     ` Andrew Schulman
2011-05-11  7:35       ` Corinna Vinschen
2011-05-11  8:10         ` Corinna Vinschen
2011-05-11 13:27         ` Andrew Schulman
     [not found]         ` <BANLkTikY=h53x5_QSqtVG23Ptno4Hd7-Kg@mail.gmail.com>
2011-05-11 18:09           ` Edward McGuire
2011-05-11 19:32             ` Corinna Vinschen
2011-05-11 19:47               ` Christopher Faylor
2011-05-11 21:37       ` Doug Morse
2011-05-12 15:11         ` Andrew Schulman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110508194037.GA15550@ikrg.com \
    --to=dm@dougmorse.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).