This is the mail archive of the
mailing list for the Cygwin project.
Re: GNU screen on Cygwin: Cannot seem to reattach, no matter what I try
- From: Doug Morse <dm at dougmorse dot org>
- To: cygwin at cygwin dot com
- Date: Wed, 11 May 2011 16:37:26 -0500
- Subject: Re: GNU screen on Cygwin: Cannot seem to reattach, no matter what I try
- References: <firstname.lastname@example.org>
- Reply-to: Doug Morse <dm at dougmorse dot org>
Hi Andrew and Corinna,
Yep, something about FAT32 appears to be the problem. As Corinna correctly
notes, permissions are faked on FAT32. Doesn't matter what chmod I run, it's
all 644 or 755. Apparently, GNU screen does not like this, but apparently it
also doesn't give any error message that that's the problem. Might be worth
adding a few lines to the source to provide somewhat more diagnostic error
messages re: when socket files cannot be found or opened?!?
At any rate, it works great now -- thanks!!! I set SCREENDIR=/cygdrive/c/tmp
(an NTFS volume). Bingo, I can reattach. From same tty or different tty,
whether console or remote. It's just like the old SCO Xenix days with Wyse 60
terminals -- woo-hoo! :) Only I'd take SCO Xenix over cmd.exe any day. :)
Perhaps one for the FAQs...?
P.S., BTW, gotta love the Romans: we're just like 'em! :) :)
On Tue, May 10, 2011 at 03:07:03PM -0400, Andrew Schulman wrote:
> > 1. Output of 'cygcheck -svr' appended to the end of this message.
> Thanks, looks okay.
> > 2. I have the problem whether I run GNU screen from a cmd.exe prompt or
> > under rxvt. I tried Peter Li's suggestion of trying to run screen under
> > mintty -- still no joy. It does not matter if I running GNU screen from
> > the console or if I'm logged in remotely, or if I try to detach and
> > re-attach from the same tty or different ones. All efforts yield the
> > same result: GNU screen cannot find anything to which to re-attach, even
> > a session that I detached on the same tty just seconds before.
> > 3. chmod 666 on the socket file did not work (its permissions were
> > already 644, owned my 'morse', as shown in my original session long).
> No, I suggested that you try 0600, on the theory that your 0640 permissions
> might be too permissive, and screen would refuse to use the socket.
> Unlikely, but worth a try.
> However, if your socket is on a FAT file system, I don't know if you can
> set 0600 permissions.
> > HOWEVER, I am wondering: my Cygin /tmp *IS* on a FAT32 filesystem, *NOT*
> > an NTFS filesystem. Would that matter? Are socket files properly
> > handled by Cygwin on FAT32? (I've never used a socket-based Cygwin
> > program on this host before, at least not to my knowledge.)
> Hm, that could explain it. I don't recall this coming up before.
> Looking at screen(1), it says that sockets can go in "any mode 0700
> directory", and that you can set that in $SCREENDIR. So, I suggest trying
> the following in order:
> (1) Run
> chmod 0700 /tmp/uscreens/S-morse
> chmod 0600 /tmp/uscreens/S-morse/*
> then try to reattach.
> (2) If you can't set the above permissions because /tmp is on a FAT file
> system, then find an NTFS directory and run
> export SCREENDIR=/path/to/ntfs/directory
> then start a new screen session, and see if you can reattach to it.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple