diff options
author | chris <> | 2005-11-28 15:35:21 +0000 |
---|---|---|
committer | chris <> | 2005-11-28 15:35:21 +0000 |
commit | b60fe9ceeb44e451b1b33fc78398a2b457ba26e8 (patch) | |
tree | 6499234507d9cdd5215761040117fca815993d9f | |
parent | 5069cba411938a05f88a68018082150b02250e62 (diff) | |
download | iftop-b60fe9ceeb44e451b1b33fc78398a2b457ba26e8.zip |
Oops.
-rw-r--r-- | resolver.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |