summaryrefslogtreecommitdiffstats
path: root/sesman/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/session.c')
-rw-r--r--sesman/session.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sesman/session.c b/sesman/session.c
index b68ed3f4..6b49a3fb 100644
--- a/sesman/session.c
+++ b/sesman/session.c
@@ -745,9 +745,15 @@ session_start_fork(int width, int height, int bpp, char *username,
temp->item->type = type;
temp->item->status = SESMAN_SESSION_STATUS_ACTIVE;
+ /*THREAD-FIX require chain lock */
+ lock_chain_acquire();
+
temp->next = g_sessions;
g_sessions = temp;
g_session_count++;
+
+ /*THREAD-FIX release chain lock */
+ lock_chain_release();
}
return display;