summaryrefslogtreecommitdiffstats
path: root/xrdp
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2008-08-26 05:37:04 +0000
committerjsorg71 <jsorg71>2008-08-26 05:37:04 +0000
commitc3579cf5793746efe14cda896b41d47c89b486aa (patch)
treeeaa989c420c58be4f86a443a118ce4c8e7cebacc /xrdp
parentdf49056579c9539af79a52fa561087c4d4f0deb5 (diff)
downloadxrdp-proprietary-c3579cf5793746efe14cda896b41d47c89b486aa.tar.gz
xrdp-proprietary-c3579cf5793746efe14cda896b41d47c89b486aa.zip
bsd and pthread fixes
Diffstat (limited to 'xrdp')
-rw-r--r--xrdp/xrdp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/xrdp/xrdp.c b/xrdp/xrdp.c
index c04c5293..344a80b7 100644
--- a/xrdp/xrdp.c
+++ b/xrdp/xrdp.c
@@ -51,7 +51,7 @@ g_xrdp_sync(long (*sync_func)(long param1, long param2), long sync_param1,
long sync_result;
int sync_command;
- if (tc_get_threadid() == g_threadid)
+ if (tc_threadid_equal(tc_get_threadid(), g_threadid))
{
/* this is the main thread, call the function directly */
sync_result = sync_func(sync_param1, sync_param2);
@@ -87,12 +87,8 @@ xrdp_shutdown(int sig)
tbus threadid;
threadid = tc_get_threadid();
- if (threadid != g_threadid)
- {
- return;
- }
g_writeln("shutting down");
- g_writeln("signal %d threadid $%8.8x", sig, threadid);
+ g_writeln("signal %d threadid %p", sig, threadid);
if (!g_is_wait_obj_set(g_term_event))
{
g_set_wait_obj(g_term_event);