hardcoding values; reset 'gfd' when turning off the alarm.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21563
dc483132-0cff-0310-8789-
dd5450dbe970
fprintf(stderr, "doit: setting resync alarm to 5s\n");
signal(SIGALRM, resync_alarm);
gfd = fd;
- if (alarm(5) != 0) {
+ if (alarm(INITIAL_TIMER) != 0) {
if (debug) {
fprintf(stderr,
_("%s: alarm already set\n"), progname);
* Turn off alarm upon successful authentication from master.
*/
alarm(0);
+ gfd = -1;
if (!authorized_principal(kpropd_context, client, etype)) {
char *name;