X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FWHOHandler.c;h=28547188eb3f0e0f2e22213a98af3a344ccdf5c5;hp=f8769decabbce38aa79444156a7b1006b3450e83;hb=2b9e305af713f0960ac0cd7645af3e0ef85a8515;hpb=740649d6f206dc1f65e7550a842cf298fac7cb36 diff --git a/src/WHOHandler.c b/src/WHOHandler.c index f8769de..2854718 100644 --- a/src/WHOHandler.c +++ b/src/WHOHandler.c @@ -242,7 +242,7 @@ static void _recv_whohandler_354(struct ClientSocket *client, char **argv, unsig struct WHOQueueEntry* entry = getNextWHOQueueEntry(client, type, 0); if(entry == NULL) return; #ifdef HAVE_THREADS - unsigned long tid = syscall(SYS_gettid); + unsigned int tid = (unsigned int) pthread_self_tid(); while(!clientsocket_parseorder_top(tid)) { usleep(1000); //1ms } @@ -338,7 +338,7 @@ static void _recv_whohandler_315(struct ClientSocket *client, char **argv, unsig struct WHOQueueEntry* entry = getNextWHOQueueEntry(client, type, 0); if(entry == NULL) return; #ifdef HAVE_THREADS - unsigned long tid = syscall(SYS_gettid); + unsigned int tid = (unsigned int) pthread_self_tid(); while(!clientsocket_parseorder_top(tid)) { usleep(1000); //1ms }