mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-11-23 18:23:25 +08:00
- (djm) Revert SSH2 serverloop hack, will find a better way.
This commit is contained in:
parent
60819b44bd
commit
15b2952cd8
@ -1,5 +1,6 @@
|
||||
20001014
|
||||
- (djm) Don't accept PAM_PROMPT_ECHO_ON messages during initial auth
|
||||
- (djm) Revert SSH2 serverloop hack, will find a better way.
|
||||
|
||||
20001007
|
||||
- (stevesk) Print PAM return value in PAM log messages to aid
|
||||
|
@ -676,8 +676,6 @@ server_loop2(void)
|
||||
session_close_by_pid(pid, status);
|
||||
child_terminated = 0;
|
||||
signal(SIGCHLD, sigchld_handler2);
|
||||
if (used_sessions() == 0)
|
||||
break;
|
||||
}
|
||||
channel_after_select(&readset, &writeset);
|
||||
process_input(&readset);
|
||||
|
11
session.c
11
session.c
@ -150,7 +150,6 @@ char *original_command = NULL;
|
||||
/* data */
|
||||
#define MAX_SESSIONS 10
|
||||
Session sessions[MAX_SESSIONS];
|
||||
static int num_used_sessions;
|
||||
|
||||
#ifdef WITH_AIXAUTHENTICATE
|
||||
/* AIX's lastlogin message, set in auth1.c */
|
||||
@ -1438,7 +1437,6 @@ session_new(void)
|
||||
sessions[i].used = 0;
|
||||
sessions[i].self = i;
|
||||
}
|
||||
num_used_sessions = 0;
|
||||
did_init = 1;
|
||||
}
|
||||
for(i = 0; i < MAX_SESSIONS; i++) {
|
||||
@ -1457,8 +1455,7 @@ session_new(void)
|
||||
s->auth_proto = NULL;
|
||||
s->used = 1;
|
||||
s->pw = NULL;
|
||||
num_used_sessions++;
|
||||
debug("session_new: session %d (%d used)", i, num_used_sessions);
|
||||
debug("session_new: session %d", i);
|
||||
return s;
|
||||
}
|
||||
}
|
||||
@ -1871,7 +1868,6 @@ session_close(Session *s)
|
||||
session_pty_cleanup(s);
|
||||
session_free(s);
|
||||
session_proctitle(s);
|
||||
num_used_sessions--;
|
||||
}
|
||||
|
||||
void
|
||||
@ -1917,11 +1913,6 @@ session_close_by_channel(int id, void *arg)
|
||||
}
|
||||
}
|
||||
|
||||
int used_sessions(void)
|
||||
{
|
||||
return(num_used_sessions);
|
||||
}
|
||||
|
||||
char *
|
||||
session_tty_list(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user