From 96c9360c79bf565c904f68126a63b9cf099528a9 Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Fri, 14 May 2010 02:06:00 +0000 Subject: [PATCH] cov 10383: impove the error handling after socket() git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2826 fd59a12c-fef9-0310-b244-a6a79926bd2f --- lcr/uis.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lcr/uis.c b/lcr/uis.c index 004c4648..93745a54 100755 --- a/lcr/uis.c +++ b/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) -- 2.39.5