diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2014-05-17 20:08:22 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2014-05-17 20:08:22 -0700 |
commit | ff61d8c6fff13ca06d818e353b90aa847db39858 (patch) | |
tree | f15a7723a6a8683ab9c6b50980473befae61a9b6 /sesman/session.c | |
parent | 5384e241f1e0d225c9439236ab3ba9364ad5b583 (diff) | |
parent | 4f4a7a8c8ccaafa742b45bfc30c321b7b58d8e58 (diff) | |
download | xrdp-proprietary-ff61d8c6fff13ca06d818e353b90aa847db39858.tar.gz xrdp-proprietary-ff61d8c6fff13ca06d818e353b90aa847db39858.zip |
Merge branch 'master' of github.com:neutrinolabs/xrdp
Diffstat (limited to 'sesman/session.c')
-rw-r--r-- | sesman/session.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sesman/session.c b/sesman/session.c index 32b2e6be..665d1138 100644 --- a/sesman/session.c +++ b/sesman/session.c @@ -684,9 +684,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; |