ソースを参照

Merge trunk revision 2826:
r2826 | asalkeld | 2010-05-13 19:06:00 -0700 (Thu, 13 May 2010) | 2 lines

cov 10383: impove the error handling after socket()



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2869 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 15 年 前
コミット
fc0d372b02
1 ファイル変更3 行追加1 行削除
  1. 3 1
      lcr/uis.c

+ 3 - 1
lcr/uis.c

@@ -77,7 +77,9 @@ static void uis_lcr_bind (int *server_fd)
 	 */
 	fd = socket (PF_UNIX, SOCK_STREAM, 0);
 	if (fd == -1) {
-		printf ("lcr_bind failed\n");
+		perror ("uis_lcr_bind failed");
+		*server_fd = -1;
+		return;
 	};
 
 #if !defined(COROSYNC_LINUX)