+ if (!port) {
+#ifndef ISSERVER
+ /* You really should define ISSERVER if you're going to use inetd
+ * mode, but if you don't, closing stdout and stderr (which inetd
+ * had connected to the client socket) will let it work. */
+ close(1);
+ close(2);
+ open("/dev/null", O_WRONLY);
+ open("/dev/null", O_WRONLY);
+#endif
+ set_peername(0,clientname);
+ serveconnection(0);
+ return 0;
+ }