Signed-off-by: Angus Salkeld <[email protected]>
---
 lcr/uis.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lcr/uis.c b/lcr/uis.c
index 004c464..93745a5 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)
-- 
1.6.6.1

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to