diff options
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pbulk/files/pbulk/pscan/master.c | 5 |
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, |