Deleted Added
full compact
candidate.c (1554) candidate.c (8857)
1/*-
2 * Copyright (c) 1985, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 22 unchanged lines hidden (view full) ---

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35static char sccsid[] = "@(#)candidate.c 8.1 (Berkeley) 6/6/93";
36#endif /* not lint */
37
38#ifdef sgi
1/*-
2 * Copyright (c) 1985, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 22 unchanged lines hidden (view full) ---

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35static char sccsid[] = "@(#)candidate.c 8.1 (Berkeley) 6/6/93";
36#endif /* not lint */
37
38#ifdef sgi
39#ident "$Revision: 1.9 $"
39#ident "$Revision: 1.1.1.1 $"
40#endif
41
42#include "globals.h"
43
44/*
45 * `election' candidates a host as master: it is called by a slave
46 * which runs with the -M option set when its election timeout expires.
47 * Note the conservative approach: if a new timed comes up, or another

--- 70 unchanged lines hidden (view full) ---

118 }
119 rmnetmachs(net);
120 return(SLAVE);
121
122 case TSP_QUIT:
123 case TSP_REFUSE:
124 /*
125 * Collision: change value of election timer
40#endif
41
42#include "globals.h"
43
44/*
45 * `election' candidates a host as master: it is called by a slave
46 * which runs with the -M option set when its election timeout expires.
47 * Note the conservative approach: if a new timed comes up, or another

--- 70 unchanged lines hidden (view full) ---

118 }
119 rmnetmachs(net);
120 return(SLAVE);
121
122 case TSP_QUIT:
123 case TSP_REFUSE:
124 /*
125 * Collision: change value of election timer
126 * using exponential backoff.
126 * using exponential backoff.
127 *
128 * Fooey.
129 * An exponential backoff on a delay starting at
130 * 6 to 15 minutes for a process that takes
131 * milliseconds is silly. It is particularly
132 * strange that the original code would increase
133 * the backoff without bound.
134 */

--- 33 unchanged lines hidden ---
127 *
128 * Fooey.
129 * An exponential backoff on a delay starting at
130 * 6 to 15 minutes for a process that takes
131 * milliseconds is silly. It is particularly
132 * strange that the original code would increase
133 * the backoff without bound.
134 */

--- 33 unchanged lines hidden ---