changeset 12107:babeebf041c4

*-login: Ignore ENOTCONN error for shutdown() It's probably just a duplicate of a previous read() failure.
author Timo Sirainen <tss@iki.fi>
date Mon, 13 Sep 2010 16:59:45 +0100
parents 18ab89f4d6a1
children 4a67c3a3ec6f
files src/login-common/client-common-auth.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/login-common/client-common-auth.c	Mon Sep 13 16:18:31 2010 +0100
+++ b/src/login-common/client-common-auth.c	Mon Sep 13 16:59:45 2010 +0100
@@ -442,7 +442,7 @@
 
 		/* the fd may still be hanging somewhere in kernel or another
 		   process. make sure the client gets disconnected. */
-		if (shutdown(client->fd, SHUT_RDWR) < 0)
+		if (shutdown(client->fd, SHUT_RDWR) < 0 && errno != ENOTCONN)
 			i_error("shutdown() failed: %m");
 
 		if (data == NULL)