# HG changeset patch # User Sebastien Decugis # Date 1370933218 -28800 # Node ID 9ff57791a5abea518ec0fd5ac4015a1c1928f247 # Parent 16f2d2f15e5bf832939ef2f5822b5a6d023aae7e Fix worker name as the connection is not created yet diff -r 16f2d2f15e5b -r 9ff57791a5ab libfdcore/server.c --- a/libfdcore/server.c Tue Jun 11 14:05:33 2013 +0800 +++ b/libfdcore/server.c Tue Jun 11 14:46:58 2013 +0800 @@ -146,7 +146,7 @@ /* Set the thread name */ { char buf[48]; - snprintf(buf, sizeof(buf), "Worker#%d@%s", pw->id, fd_cnx_getid(s->conn)); + snprintf(buf, sizeof(buf), "Worker#%d[%s%s]", pw->id, IPPROTO_NAME(s->proto), s->secur?", Sec" : ""); fd_log_threadname ( buf ); }