summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2015-10-22 19:57:47 +0000
committerjoerg <joerg@pkgsrc.org>2015-10-22 19:57:47 +0000
commit58b8032f152ca7e59465fada2abde09fb83aa841 (patch)
treeabdd3400be2589046f1e65756b0bcd70bb17fd80 /pkgtools
parentba1dbb51edae087e51ad8a9f3a8d561a8314529d (diff)
downloadpkgsrc-58b8032f152ca7e59465fada2abde09fb83aa841.tar.gz
Fix missing change from the machine the scan change was tested on.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pbulk/files/pbulk/pscan/master.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgtools/pbulk/files/pbulk/pscan/master.c b/pkgtools/pbulk/files/pbulk/pscan/master.c
index 21ddb975106..c7525b41040 100644
--- a/pkgtools/pbulk/files/pbulk/pscan/master.c
+++ b/pkgtools/pbulk/files/pbulk/pscan/master.c
@@ -1,4 +1,4 @@
-/* $NetBSD: master.c,v 1.9 2015/10/21 23:03:17 joerg Exp $ */
+/* $NetBSD: master.c,v 1.10 2015/10/22 19:57:47 joerg Exp $ */
/*-
* Copyright (c) 2007, 2009 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -162,8 +162,7 @@ shutdown_master(void)
event_del(&listen_event);
(void)close(listen_event_socket);
LIST_FOREACH(peer, &inactive_peers, peer_link) {
- (void)shutdown(peer->fd, SHUT_RDWR);
- uint16_t net_job_len = htons(job_len);
+ uint16_t net_job_len = htons(0);
(void)memcpy(peer->tmp_buf, &net_job_len, 2);
deferred_write(peer->fd, peer->tmp_buf, 2, peer, do_nothing,