Commit e80ab09f authored by chris's avatar chris
Browse files

""

parent fbef5fdb
......@@ -332,7 +332,6 @@ char *do_resolve(struct in_addr *addr) {
return NULL;
default:
fprintf(stderr, "New child is %d, we have fd %d, he has fd %d\n", workerinfo->child, p[0], p[1]);
close(p[1]);
}
}
......@@ -341,7 +340,6 @@ fprintf(stderr, "New child is %d, we have fd %d, he has fd %d\n", workerinfo->ch
if (write(workerinfo->fd, addr, sizeof *addr) != sizeof *addr
|| read(workerinfo->fd, name, NAMESIZE) != NAMESIZE) {
/* Something went wrong. Just kill the child and get on with it. */
fprintf(stderr, "Protocol error (%s) talking to child %d\n", strerror(errno), workerinfo->child);
kill(workerinfo->child, SIGKILL);
wait();
close(workerinfo->fd);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment