projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aec5566
)
output the session ids when logging that we kill'em
author
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 22 Nov 2014 14:49:21 +0000
(15:49 +0100)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 22 Nov 2014 14:49:21 +0000
(15:49 +0100)
citadel/context.c
patch
|
blob
|
history
diff --git
a/citadel/context.c
b/citadel/context.c
index 38e0d03f5eb130614105fc079f481106227d5f6a..81b597850b1dbfbe00396ea6119ba1014ed80e3e 100644
(file)
--- a/
citadel/context.c
+++ b/
citadel/context.c
@@
-276,7
+276,12
@@
void terminate_all_sessions(void)
for (ccptr = ContextList; ccptr != NULL; ccptr = ccptr->next) {
if (ccptr->client_socket != -1)
{
for (ccptr = ContextList; ccptr != NULL; ccptr = ccptr->next) {
if (ccptr->client_socket != -1)
{
- CON_syslog(LOG_INFO, "terminate_all_sessions() is murdering %s", ccptr->curr_user);
+ if (ccptr->IO != NULL) {
+ CON_syslog(LOG_INFO, "terminate_all_sessions() is murdering %s IO[%ld]CC[%d]", ccptr->curr_user, ccptr->IO->ID, ccptr->cs_pid);
+ }
+ else {
+ CON_syslog(LOG_INFO, "terminate_all_sessions() is murdering %s CC[%d]", ccptr->curr_user, ccptr->cs_pid);
+ }
close(ccptr->client_socket);
ccptr->client_socket = -1;
killed++;
close(ccptr->client_socket);
ccptr->client_socket = -1;
killed++;