Date: Tue, 6 Feb 2007 23:16:49 +0300 (MSK) From: "Andrew N. Below" <defan@zenon.net> To: freebsd-hackers@freebsd.org Subject: socket descriptor returned from socket() Message-ID: <20070206230620.N97390@defan.zenon.net>
next in thread | raw e-mail | index | archive | help
Hello. Could 0 (zero) be a valid socket descriptor? man 2 socket: RETURN VALUES A -1 is returned if an error occurs, otherwise the return value is a descriptor referencing the socket. I have some troubles with xinetd (2.3.14) - first service in config file with proto=tcp, socket_type=stream and wait=yes fail to start (fcntl returns "Bad file descriptor" error). -- Andrew N. Below
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070206230620.N97390>