delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/10/10/10:05:01

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <21e1598b0710100704h13d8c77ay40625e31170a7a7b@mail.gmail.com>
Date: Wed, 10 Oct 2007 16:04:27 +0200
From: "Damjan Lango" <damjan DOT lango AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: screen under ssh: debugs
In-Reply-To: <21e1598b0710100702m1d30e60epb27f9ec87389b2a8@mail.gmail.com>
MIME-Version: 1.0
References: <21e1598b0710100702m1d30e60epb27f9ec87389b2a8 AT mail DOT gmail DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi!

I have problems reattaching to screen under a ssh session.

I have rebuild screen with debug enabled, run screen under ssh
session, detached and tried to reattach under the same ssh session.
When i tried to attach, the background screen debug log printed:

 + hit ev fd 5 type 1!
Knock - knock!
Ha, there was someone knocking on my socket??
*** RecMsg: type 2 tty /dev/tty0
display: /dev/tty0 display not found
Checking pid 3072
secopen(/dev/tty0, 0xc002, 0000)
Msg('Attach: Could not open /dev/tty0!: Permission denied') (0);
 + hit ev fd 0 type 3!
serv_select_fn called
waiting for events:
 - fd 7 type 1 pri 0
 - fd 7 type 2 pri 0
 - fd 5 type 1 pri 0
 - fd 0 type 3 pri -10
 - cond ev fd 7 type 2 failed
readfds: 5 7
writefds:

while the screen -r debug log printed:

-- screen debug started ./screen (4.00.03 (FAU) 23-Oct-06)
POSIX
TERMIO
Window size changing enabled
SETREUID
USEBCOPY
UTMPOK
LOADAV
NETHACK
NAME_MAX = 255
FindEncoding US-ASCII
locale says encoding = -1
secopen(/dev/tty0, 0x4002, 0000)
attach_tty is /dev/tty0
SockPath: /tmp/uscreens/S-Damjan  SockMatch: NULL
screen -r: - is there anybody out there?
Attach: how=2, tty=/dev/tty0
- .
- ..
- 2872.tty0.Dragon
stat /tmp/uscreens/S-Damjan/2872.tty0.Dragon
uid = 1000, gid = 513
euid = 1000, egid = 513
S_ISSOCK?
st.st_uid = 1000, real_uid = 1000
  has mode 0700
  store it.
  connecting: mode=700, rflag=1, xflag=0, dflag=0 ?
  no!
- 4088.tty0.Dragon
stat /tmp/uscreens/S-Damjan/4088.tty0.Dragon
uid = 1000, gid = 513
euid = 1000, egid = 513
S_ISSOCK?
st.st_uid = 1000, real_uid = 1000
  has mode 0600
  store it.
  connecting: mode=600, rflag=1, xflag=0, dflag=0 ?
  taken.
Attach: uid 1000 euid 1000
Attach decided, it is '/tmp/uscreens/S-Damjan/4088.tty0.Dragon'
Attach found MasterPid == 4088
attach: sending 828 bytes...AttacherFinit();


can somebody look at this?
it seems there is some problem with opening the tty by the server
screen process...

screen in a local cmd window works fine.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019