Displaying 1 result from an estimated 1 matches for "did_init_sess".
2001 Oct 25
2
SIGCHLD race *trivial* patch
...sion.c
--- 2_9_p2_w_gss_krb5_named_keys.10/session.c Tue, 26 Jun 2001 16:27:13 -0400 willian (OpenSSH/i/14_session.c 1.3 644)
+++ 2_9_p2_w_gss_krb5_named_keys.10(w)/session.c Thu, 25 Oct 2001 15:04:21 -0400 willian (OpenSSH/i/14_session.c 1.3 644)
@@ -1533,18 +1533,18 @@
exit(1);
}
+static int did_init_sessions = 0;
Session *
session_new(void)
{
int i;
- static int did_init = 0;
- if (!did_init) {
+ if (!did_init_sessions) {
debug("session_new: init");
for(i = 0; i < MAX_SESSIONS; i++) {
sessions[i].used = 0;
sessions[i].self = i;
}
- did_init = 1;
+ did_init_sessi...