X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=server.c;h=af93941dd6dba2a56fc2cb63d23162f9355c46fb;hp=a023b1526931c1eeeb3fcec7be3a6b6c72662c69;hb=b48bca326fd7fc0484dd807ac1542269b3ab070f;hpb=94802b02fadd65ac1704fe9fcbcf0a2b023d2fa4 diff --git a/server.c b/server.c index a023b152..af93941d 100644 --- a/server.c +++ b/server.c @@ -331,8 +331,6 @@ static int command_post_select(struct sched *s, void *context) ret = para_accept(sct->listen_fd, &s->rfds, NULL, 0, &new_fd); if (ret <= 0) goto out; - peer_name = remote_name(new_fd); - PARA_INFO_LOG("got connection from %s, forking\n", peer_name); mmd->num_connects++; mmd->active_connections++; /* @@ -358,6 +356,8 @@ static int command_post_select(struct sched *s, void *context) /* parent keeps accepting connections */ return 0; } + peer_name = remote_name(new_fd); + PARA_INFO_LOG("accepted connection from %s\n", peer_name); /* mmd might already have changed at this point */ free(chunk_table); alarm(ALARM_TIMEOUT);