[8447] in Athena Bugs

home help back first fref pref prev next nref lref last post

7.3P decmips and rs/6000 gettime never timesout if server is down

daemon@ATHENA.MIT.EDU (epeisach@Athena.MIT.EDU)
Mon Oct 21 17:20:18 1991

From: epeisach@Athena.MIT.EDU
Date: Mon, 21 Oct 91 17:21:16 -0400
To: bugs@Athena.MIT.EDU


Symptom

gettime down_server

never returns.

Problem is need for volatile statement when dealing w/ longjmps


*** /tmp/,RCSt1a05442	Mon Oct 21 17:19:55 1991
--- gettime.c	Mon Oct 21 17:19:15 1991
***************
*** 51,57 ****
  	long hosttime;
  	register int *nettime;
  	char hostname[64];
! 	int attempts = 0, cc;
  	
  	strcpy (hostname, DEFAULT_TIME_SERVER);
  	for (i = 1;i < argc;i++) {
--- 51,62 ----
  	long hosttime;
  	register int *nettime;
  	char hostname[64];
! 	int cc;
! #if !defined(ultrix) && defined(vax)
! 	int attempts = 0;
! #else
! 	volatile int attempts = 0;
! #endif
  	
  	strcpy (hostname, DEFAULT_TIME_SERVER);
  	for (i = 1;i < argc;i++) {

home help back first fref pref prev next nref lref last post