Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
1eec47f6
Commit
1eec47f6
authored
Mar 08, 1994
by
Per Cederqvist
Browse files
(login): Set same_person before calling logout().
parent
4fc13324
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/session.c
View file @
1eec47f6
/*
* $Id: session.c,v 0.2
3
1994/03/0
5
22:
17:0
1 ceder Exp $
* $Id: session.c,v 0.2
4
1994/03/0
8
22:
59:1
1 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
* Session control and miscellaneous.
*/
static
char
*
rcsid
=
"$Id: session.c,v 0.2
3
1994/03/0
5
22:
17:0
1 ceder Exp $"
;
static
char
*
rcsid
=
"$Id: session.c,v 0.2
4
1994/03/0
8
22:
59:1
1 ceder Exp $"
;
#include
"rcs.h"
USE
(
rcsid
);
...
...
@@ -218,6 +218,8 @@ login (Pers_no pers_no,
return
FAILURE
;
}
same_person
=
(
ACTPERS
==
pers_no
);
logout
();
/*+++ How many tries are allowed before disconnection? */
active_connection
->
invisible
=
!!
invisible
;
/* Normalize 17. */
...
...
@@ -225,7 +227,6 @@ login (Pers_no pers_no,
/* Don't count this as a new session if the person already was
logged on. The elisp-client version 0.38.1 logs on invisibly
automatically to indicate that the user is inactve. */
same_person
=
(
ACTPERS
==
pers_no
);
if
(
same_person
==
FALSE
)
++
pers_p
->
sessions
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment