[comp.unix.questions] IOCTL flushing input buffer queues

dmh@viusys.UUCP (David M. Heisler) (06/09/87)

When using KERMIT, 4C(040) 30 Sep 1986, to transfer an ascii file from
a PC to a Unisys 5000/80, Kermit transfers anywhere from 0K to 10K bytes
of my file.  I have traced the problem to line 92 of the file "ckcfn2.c"
of the Kermit source code, where a call to the Kermit function "ttflui()"
is made. This function flushes the input buffer queues. The function 
"ttflui()" is defined starting on line 856 of the file "ckutio.c" of the
Kermit source code. What appears to be happening is that when "ttflui()"
makes its call to "ioctl()" to flush the input queue he never returns.
Again this will happen anywhere between 0K and 10K bytes of data.  If 
I comment out the flush in the file ckcfn2.c the problem disappears.

If anyone has an answer, or even a suggestion, your response would be
greatly appreciated. 


viusys!dm

ken@rochester.arpa (Ken Yap) (06/10/87)

Well, I don't know about the problem but maybe if you got the latest
version if might fix the problem.

Script started on Tue Jun  9 21:24:36 1987
nemesis.cs.rochester.edu% kermit
C-Kermit, 4D(061) 8 Sep 86, 4.2 BSD
Type ? for help
C-Kermit>show version

Versions:
 C-Kermit, 4D(061) 8 Sep 86
 C-Kermit Protocol Module 4C(030), 19 Mar 86
 C-Kermit functions, 4D(049) 4 Jun 86
 Unix cmd package V1A(021), 19 Jun 85
 User Interface 4C(054), 10 Jul 86
 Unix tty I/O, 4C(040), 30 Sep 86 for 4.2 BSD
 Unix file support, 4C(033) 8 Sep 86 for 4.2 BSD
 Connect Command for Unix, V4C(015) 19 Mar 86
 Dial Command, V2.0(008) 26 Jul 85
 Script Command, V2.0(007) 5 Jul 85

C-Kermit>exit
nemesis.cs.rochester.edu% ^D
script done on Tue Jun  9 21:25:00 1987

If that doesn't work, try asking info-kermit@cu20b.columbia.edu.

	Ken