changeset 3091:1e12a24b7f27

[gaim-migrate @ 3105] This might fix some of those Gaim-takes-100-percent-of-the-CPU problems. Thanks Jason Copenhaver. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 20 Mar 2002 17:21:29 +0000
parents 25c2f11e92fa
children beb5d0e592d9
files src/core.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/core.c	Wed Mar 20 17:17:09 2002 +0000
+++ b/src/core.c	Wed Mar 20 17:21:29 2002 +0000
@@ -410,10 +410,12 @@
 				g_get_tmp_dir(), g_get_user_name(), getpid());
 		if (bind(fd, (struct sockaddr *)&saddr, sizeof(saddr)) != -1)
 			listen(fd, 100);
-		else
+		else {
 			g_log(NULL, G_LOG_LEVEL_CRITICAL,
-					"Failed to assign %s to a socket (Error: %s)",
-					saddr.sun_path, strerror(errno));
+				"Failed to assign %s to a socket (Error: %s)",	
+				saddr.sun_path, strerror(errno));
+			return -1;
+		}
 		umask(m);
 	} else
 		g_log(NULL, G_LOG_LEVEL_CRITICAL, "Unable to open socket: %s", strerror(errno));