This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: screen under ssh: debugs


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]