diff src/lib/network.c @ 14634:a65006d95d53

fd_set_nonblock() API changed to i_fatal() on failure. Pretty much none of its users were checking if it failed, and there's really no good reason for it to fail anyway.
author Timo Sirainen <tss@iki.fi>
date Sun, 24 Jun 2012 19:35:11 +0300
parents c93ca5e46a8a
children 7c058aa05b0a
line wrap: on
line diff
--- a/src/lib/network.c	Sun Jun 24 19:13:58 2012 +0300
+++ b/src/lib/network.c	Sun Jun 24 19:35:11 2012 +0300
@@ -334,8 +334,7 @@
 
 void net_set_nonblock(int fd, bool nonblock)
 {
-	if (fd_set_nonblock(fd, nonblock) < 0)
-		i_fatal("fd_set_nonblock(%d) failed: %m", fd);
+	fd_set_nonblock(fd, nonblock);
 }
 
 int net_set_cork(int fd ATTR_UNUSED, bool cork ATTR_UNUSED)