[net.bugs.4bsd] tftp dies when interrupted during a transfer

mogul@Gregorio.ARPA (10/18/84)

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);
  }