From e01e80c5e7d4b619754686acec70c1fd24d5f623 Mon Sep 17 00:00:00 2001 From: Benjamin Riefenstahl Date: Wed, 6 Jul 2022 03:38:17 +0000 Subject: [PATCH] ape/bsd/listen.c: Drop "bind 0". There does not seem to be a good reason for this. The "bind" command has no practical consequence. --- sys/src/ape/lib/bsd/listen.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/src/ape/lib/bsd/listen.c b/sys/src/ape/lib/bsd/listen.c index e1ba4ccc8..0b6c14c8d 100644 --- a/sys/src/ape/lib/bsd/listen.c +++ b/sys/src/ape/lib/bsd/listen.c @@ -139,12 +139,6 @@ listen(fd, backlog) errno = EBADF; return -1; } - /* FIXME: What is this good for? */ - if(write(cfd, "bind 0", 6) < 0) { - errno = EGREG; - close(cfd); - return -1; - } strcpy(msg, "announce "); _sock_inaddr2string(r, msg + 9, sizeof msg - 9); n = write(cfd, msg, strlen(msg));