Skip to content
GitLab
Menu
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
d5e711d3
Commit
d5e711d3
authored
Feb 27, 1994
by
Per Cederqvist
Browse files
(login): Don't update the sessions count when logging in as the same
person which already is logged in.
parent
4e3090db
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/session.c
View file @
d5e711d3
/*
* $Id: session.c,v 0.2
0
1994/02/2
0
1
6
:2
0:1
4 ceder Exp $
* $Id: session.c,v 0.2
1
1994/02/2
7
1
5
:2
4:5
4 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
0
1994/02/2
0
1
6
:2
0:1
4 ceder Exp $"
;
static
char
*
rcsid
=
"$Id: session.c,v 0.2
1
1994/02/2
7
1
5
:2
4:5
4 ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -213,13 +213,18 @@ login (Pers_no pers_no,
active_connection
->
invisible
=
!!
invisible
;
/* Normalize 17. */
/* 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. */
if
(
ACTPERS
!=
pers_no
)
++
pers_p
->
sessions
;
ACTPERS
=
pers_no
;
ACT_P
=
pers_p
;
cached_lock_person
(
pers_no
);
pers_p
->
last_login
=
time
(
&
active_connection
->
session_start
);
++
pers_p
->
sessions
;
s_strcpy
(
&
pers_p
->
username
,
active_connection
->
username
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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