This is the mail archive of the
cygwin
mailing list for the Cygwin project.
strace cvs stops at /dev/tty read
- From: luke dot kendall at cisra dot canon dot com dot au
- To: cygwin at cygwin dot com
- Date: Wed, 17 Mar 2004 15:18:59 +1100 (EST)
- Subject: strace cvs stops at /dev/tty read
Does Cygwin's cvs ignore your PATH setting, and directly use the Windows
rsh.exe? Behaviour of /usr/bin/cvs seems to indicate it may be so.
I can't rename rsh.exe to test this since XP "repairs" rsh.exe.
I can't find out which rsh it's running since strace cvs fails:
when it asks for a password, echo turns back on and input is no longer
read from the terminal, and I have to kill the process. Then my
password is read by bash as a command and goes into the history file.
Fortunately, the undocumented history -c can be used to clear that out.
If I run just cvs update, I can enter my password and get this error:
$ /usr/bin/cvs update 2>&1 | cat -tvu
luke@cvs.research.canon.com.au's password:
cvs update: warning: unrecognized response `ok^M' from cvs server^M
c
(Note that the read from /dev/tty seemed to work, but cvs locked up
afterwards.)
Any tips?
Here's the end of the strace output:
1052 1701899 [main] ssh 2424 open: open (/dev/tty, 0x10002)
629 1702528 [main] ssh 2424 normalize_posix_path: src /dev/tty
592 1703120 [main] ssh 2424 normalize_posix_path: /dev/tty = normalize_posix_path (/dev/tty)
581 1703701 [main] ssh 2424 mount_info::conv_to_win32_path: conv_to_win32_path (/dev/tty)
593 1704294 [main] ssh 2424 mount_info::conv_to_win32_path: src_path /dev/tty, dst \dev\tty, flags 0x2, rc 0
628 1704922 [main] ssh 2424 build_fh_pc: fh 0x61670FCC
1061 1705983 [main] ssh 2424 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
1174 1707157 [main] ssh 2424 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
649 1707806 [main] ssh 2424 fhandler_base::set_flags: filemode set to binary
778 1708584 [main] ssh 2424 fhandler_console::open: incremented open_fhs, now 1
384 1708968 [main] ssh 2424 fhandler_console::open: opened conin$ 0x7, conout$ 0xB
781 1709749 [main] ssh 2424 open: 5 = open (/dev/tty, 0x10002)
921 1710670 [main] ssh 2424 sigaction: signal 14, newact 0x22E730, oldact 0x22E720
881 1711551 [main] ssh 2424 sigaction: signal 1, newact 0x22E730, oldact 0x22E700
903 1712454 [main] ssh 2424 sigaction: signal 2, newact 0x22E730, oldact 0x22E710
919 1713373 [main] ssh 2424 sigaction: signal 13, newact 0x22E730, oldact 0x22E6A0
1043 1714416 [main] ssh 2424 sigaction: signal 3, newact 0x22E730, oldact 0x22E6F0
1014 1715430 [main] ssh 2424 sigaction: signal 15, newact 0x22E730, oldact 0x22E6E0
610 1716040 [main] ssh 2424 sigaction: signal 18, newact 0x22E730, oldact 0x22E6D0
527 1716567 [main] ssh 2424 sigaction: signal 21, newact 0x22E730, oldact 0x22E6C0
507 1717074 [main] ssh 2424 sigaction: signal 22, newact 0x22E730, oldact 0x22E6B0
601 1717675 [main] ssh 2424 fhandler_console::tcgetattr: 0 = tcgetattr (0x22E740) enable flags 0x1B, t->lflag 0x107, t->iflag 0x502
1089 1718764 [main] ssh 2424 tcgetattr: iflag 502, oflag 9, cflag BF, lflag 107, VMIN 1, VTIME 0
985 1719749 [main] ssh 2424 fhandler_console::output_tcsetattr: 0 = tcsetattr (,22E770) (ENABLE FLAGS 3) (lflag 103 oflag 9)
646 1720395 [main] ssh 2424 tcsetattr: iflag 0x502, oflag 0x9, cflag 0xBF, lflag 0x103, VMIN 1, VTIME 0
679 1721074 [main] ssh 2424 tcsetattr: 0 = tcsetattr (5, 1, 22E770)
976 1722050 [main] ssh 2424 writev: writev (5, 0x22E660, 1)
1378 1723428 [main] ssh 2424 fhandler_console::write: 22EC10, 43
1055 1724483 [main] ssh 2424 fhandler_console::write: at 108(l) state is 0
1651 1726134 [main] ssh 2424 fhandler_console::write: 43 = write_console (,..43)
1201 1727335 [main] ssh 2424 writev: 43 = write (5, 0x22E660, 1), errno 2
912 1728247 [main] ssh 2424 readv: readv (5, 0x22E660, 1) blocking, sigcatchers 9
882 1729129 [main] ssh 2424 readv: no need to call ready_for_read
--
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/