On Wed, 10 Nov 2004, Greg Hudson wrote:
> On Tue, 2004-11-09 at 14:29, Peter N. Lundblad wrote:
> There's not much point in checking the return value of fprintf() when
> writing an error message to stderr prior to exiting. What are you going
> to do if it fails?
>
Print an error message to stderr:-) Ofcoruse, you're right. I was talking
about the printf statements in general, but I see that wasn't clear in
that context. Maybe there are no such in svnserve, isnce they are either
help or error messages. Sorry for the confusion.
> > I don't know why apr_socket_listen isn't checked.
>
> listen() can't fail if you pass it a valid socket.
>
> Or so I thought, anyway. My man page says that listen() can return
> EADDRINUSE, but I would think that's more of a bind() error.
>
If I remember POSIX correctly, an implementation is allowed to add other
error conditions. Also, I don't know about Windows. Ignore the error is
just sloppy, I would say.
Regards,
//Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 11 21:48:15 2004