Sockets shutdown() is just a close()
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 6 May 2014 23:17:38 +0000 (16:17 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 6 May 2014 23:28:41 +0000 (16:28 -0700)
Since we don't have shutdown in the 9ns stack.

user/bsd/shutdown.c

index 230f4d3..ecb9f31 100644 (file)
@@ -14,8 +14,7 @@
 int
 shutdown(int fd, int how)
 {
-       if(how == 2)
-               close(fd);
-
+       /* plan 9 doesn't do a shutdown.  if you shut it down, it's now closed. */
+       close(fd);
        return 0;
 }