Added thread names

This commit is contained in:
James Booth
2015-06-07 18:49:02 +01:00
parent 31506449bd
commit 40a29755a6
3 changed files with 10 additions and 1 deletions

View File

@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/prctl.h>
#include "server/xmppclient.h"
#include "server/stream_parser.h"
@@ -255,6 +256,8 @@ server_wait_for(char *id)
void*
_start_server_cb(void* userdata)
{
prctl(PR_SET_NAME, "stbbr");
struct sockaddr_in client_addr;
// listen socket non blocking