Don't put file descriptor values in thread names

The names are logged.  Loging file descriptor values gets in the way
of regression testing, such as the smoke test that'll be committed
shortly.
This commit is contained in:
Markus Armbruster 2012-08-05 17:03:08 +02:00
parent d794738fd8
commit 2fefdaed15

View file

@ -165,6 +165,7 @@ player_io_deadline(struct player *pl, int write)
void void
player_accept(void *unused) player_accept(void *unused)
{ {
static int conn_cnt;
struct sockaddr *sap; struct sockaddr *sap;
void *inaddr; void *inaddr;
int s = player_socket; int s = player_socket;
@ -222,7 +223,7 @@ player_accept(void *unused)
stacksize = 100000 stacksize = 100000
/* budget */ + MAX(WORLD_SZ() * sizeof(int) * 7, /* budget */ + MAX(WORLD_SZ() * sizeof(int) * 7,
/* power */ MAXNOC * sizeof(struct powstr)); /* power */ MAXNOC * sizeof(struct powstr));
sprintf(buf, "Conn%d", ns); sprintf(buf, "Conn%d", conn_cnt++);
empth_create(player_login, stacksize, 0, buf, np); empth_create(player_login, stacksize, 0, buf, np);
} }
} }