diff options
author | jsorg71 <jsorg71> | 2005-03-13 01:35:55 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-03-13 01:35:55 +0000 |
commit | 879736740384f77e4e07eaac880a29ba4a10e080 (patch) | |
tree | 5861e94cfaf2e2f4f42c0a8ef2eb4848261874b5 /common | |
parent | 6b9be46dd2d75448b8f63c495744d880be658cba (diff) | |
download | xrdp-proprietary-879736740384f77e4e07eaac880a29ba4a10e080.tar.gz xrdp-proprietary-879736740384f77e4e07eaac880a29ba4a10e080.zip |
shutdown socket when closing
Diffstat (limited to 'common')
-rw-r--r-- | common/os_calls.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index c24ef3a4..ab7d4983 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -324,6 +324,7 @@ void g_tcp_close(int sck) { return; } + shutdown(sck, 2); #if defined(_WIN32) closesocket(sck); #else @@ -557,6 +558,8 @@ int g_get_threadid(void) return 0; #elif defined(USE_PTHREAD) return pthread_self(); +#else + return 0; #endif } |