This is the mail archive of the cygwin@sourceware.cygnus.com 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]

RE: getc() problem with Cygwin v1.0



>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<ENTER>]]
  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@sourceware.cygnus.com


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