tftp dies when interrupted during a transfer
mogul at Gregorio.ARPA
mogul at Gregorio.ARPA
Fri Oct 19 06:42:57 AEST 1984
Index: ucb/tftp/main.c 4.2BSD Fix
Description:
When using tftp to send/receive a file, if you type ^C during
a transfer, you get back to the command level but shortly
thereafter the timeout alarm goes off and the program dies
with a "longjmp botch"
Repeat-By:
% tftp ucbarpa
tftp> timeout 10
tftp> get /etc/passwd /dev/null
^C
tftp>
longjmp botch
Illegal instruction (core dumped)
Fix:
Turn off the alarm when servicing a SIGINT:
*** main.c.old Mon Jan 23 12:17:04 1984
--- main.c Thu Oct 18 12:58:29 1984
***************
*** 426,432
intr()
{
!
longjmp(toplevel, -1);
}
--- 431,437 -----
intr()
{
! alarm(0); /* prevent timer() in tftp.c from going off */
longjmp(toplevel, -1);
}
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list