[15373] in Athena Bugs
Re: gettime
daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Mon Aug 11 15:19:56 1997
From: <epeisach@MIT.EDU>
Date: Mon, 11 Aug 1997 15:19:43 -0400
To: jweiss@MIT.EDU, cfields@MIT.EDU
Cc: ops@MIT.EDU, bugs@MIT.EDU
Hmm - that problem sounds familiar - and sure enough the fix is
probably trivial as well.. We had the same problem on the decstations
until I noticed that the variable "attempts" should be declared
volatile - as the signal handler might affect the handling of
attempts...
Now, I know I didn't change the code to be ifdefed for the sun in this
way, but I think the fix will be obvious.
If this doesn't solve your problem, you will probably need
sigsetjmp/siglongjmp as well....
Relevant code:
#if defined(sun) || defined(vax) && !defined(ultrix)
int attempts = 0;
#else
volatile int attempts = 0;
#endif