Commit b60fe9ce authored by chris's avatar chris
Browse files

Oops.

parent 5069cba4
......@@ -314,7 +314,7 @@ char *do_resolve(struct in_addr *addr) {
if (!workerinfo) {
int p[2];
if (socketpair(AF_UNIX, SOCK_DGRAM, PF_UNSPEC, p) == -1)
if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, p) == -1)
return NULL;
workerinfo = xmalloc(sizeof *workerinfo);
......@@ -341,7 +341,7 @@ char *do_resolve(struct in_addr *addr) {
|| read(workerinfo->fd, name, NAMESIZE) != NAMESIZE) {
/* Something went wrong. Just kill the child and get on with it. */
kill(workerinfo->child, SIGKILL);
wait();
wait(NULL);
close(workerinfo->fd);
xfree(workerinfo);
pthread_setspecific(worker_key, NULL);
......
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