diff options
| author | Jay Sorg <jay.sorg@gmail.com> | 2015-12-11 20:41:17 -0800 |
|---|---|---|
| committer | Jay Sorg <jay.sorg@gmail.com> | 2015-12-11 20:41:17 -0800 |
| commit | 4e0d0f3ba06028c27f80b47dacbd8a7d323e7a93 (patch) | |
| tree | 4fc02867a31074a1ab57ce8b8587af05a425b8e3 /sesman/scp.c | |
| parent | 4f128c530c6b7bfd014f23878f83bcd2369f793f (diff) | |
| download | xrdp-proprietary-4e0d0f3ba06028c27f80b47dacbd8a7d323e7a93.tar.gz xrdp-proprietary-4e0d0f3ba06028c27f80b47dacbd8a7d323e7a93.zip | |
sesman: remove the thread
Diffstat (limited to 'sesman/scp.c')
| -rw-r--r-- | sesman/scp.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sesman/scp.c b/sesman/scp.c index 076d57b2..fdb81a04 100644 --- a/sesman/scp.c +++ b/sesman/scp.c @@ -1,7 +1,7 @@ /** * xrdp: A Remote Desktop Protocol server. * - * Copyright (C) Jay Sorg 2004-2013 + * Copyright (C) Jay Sorg 2004-2015 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,7 +29,6 @@ #include "sesman.h" -extern int g_thread_sck; /* in thread.c */ extern struct config_sesman *g_cfg; /* in sesman.c */ /******************************************************************************/ @@ -39,14 +38,9 @@ scp_process_start(void *sck) struct SCP_CONNECTION scon; struct SCP_SESSION *sdata; - /* making a local copy of the socket (it's on the stack) */ - /* probably this is just paranoia */ - scon.in_sck = g_thread_sck; + scon.in_sck = (int)(tintptr)sck; LOG_DBG("started scp thread on socket %d", scon.in_sck); - /* unlocking g_thread_sck */ - lock_socket_release(); - make_stream(scon.in_s); make_stream(scon.out_s); |
