Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <779F20BCCE5AD31186A50008C75D99791716B2@SILLDN_MAIL1> From: "Fifer, Eric" To: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: RE: getc() problem with Cygwin v1.0 Date: Fri, 14 Jan 2000 09:42:22 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" >Unfortunately, I can't really strace the process when >running under rxvt, because the strace pops open a normal >console window for ttyin/ttyout and then everything works. I take this back (it must have been an earlier snapshot). On a console, strace gives me this: [...] 176 815887 [main] cat 1159 _read: read (0, 0xA04C578, 1024) [[it blocks here and type in abc]] 215 3501520 [main] cat 1159 peek_pipe: {stdin}, ready for read 203 3502507 [main] cat 1159 fhandler_base::read: read 4 bytes ( a b c 0xA) 197 3502704 [main] cat 1159 read_handler: 4 = read (0<{stdin}>, 0xA04C578, 1024) 177 3503615 [main] cat 1159 _write: write (1, 0xA04C578, 4) abc 209 3503824 [main] cat 1159 fhandler_base::write: after write, name some disk file, rpos 4 200 3504024 [main] cat 1159 _write: 4 = write (1, 0xA04C578, 4) 174 3504916 [main] cat 1159 _read: read (0, 0xA04C578, 1024) [[and then blocks again]] Within rxvt, strace gives me this: [...] 175 830016 [main] cat 1251 _read: read (0, 0xA04BE80, 1024) [[it blocks here, type a and it continues]] 217 1182695 [main] cat 1251 peek_pipe: {stdin}, ready for read 204 1183655 [main] cat 1251 fhandler_base::read: read 1 bytes ( a) 195 1183850 [main] cat 1251 read_handler: 1 = read (0<{stdin}>, 0xA04BE80, 1024) 175 1184745 [main] cat 1251 _write: write (1, 0xA04BE80, 1) a 204 1184949 [main] cat 1251 fhandler_base::write: after write, name some diskfile, rpos 1 200 1185149 [main] cat 1251 _write: 1 = write (1, 0xA04BE80, 1) 175 1186042 [main] cat 1251 _read: read (0, 0xA04BE80, 1024) [[then blocks here, type b and it continues]] 220 1823033 [main] cat 1251 peek_pipe: {stdin}, ready for read 206 1823986 [main] cat 1251 fhandler_base::read: read 1 bytes ( b) 196 1824182 [main] cat 1251 read_handler: 1 = read (0<{stdin}>, 0xA04BE80, 1024) 176 1825080 [main] cat 1251 _write: write (1, 0xA04BE80, 1) b 207 1825287 [main] cat 1251 fhandler_base::write: after write, name some diskfile, rpos 2 198 1825485 [main] cat 1251 _write: 1 = write (1, 0xA04BE80, 1) 174 1826375 [main] cat 1251 _read: read (0, 0xA04BE80, 1024) [etc ...] But, this was only slightly useful once I started looking at the source. And, right now I don't have the time to look any further ... Eric Fifer -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com