File 0017-abort-on-socket-error-with-better-error-msg.patch of Package sblim-sfcb
From 15d47d39d7f586ea9ccb32d18ff067c7e2f25097 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Wed, 22 Oct 2008 15:00:42 +0200
Subject: [PATCH] abort() on socket error with better error msg
---
msgqueue.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/msgqueue.c b/msgqueue.c
index 0917f62..ed2e055 100644
--- a/msgqueue.c
+++ b/msgqueue.c
@@ -170,9 +170,9 @@ static int spHandleError(int *s, char *m)
{
_SFCB_ENTER(TRACE_MSGQUEUE, "handleError");
char *emsg=strerror(errno);
- mlogf(M_ERROR,M_SHOW,"%s %d %d-%d %s\n", m, *s, currentProc, errno,emsg);
- // _SFCB_ABORT();
- return -1;
+ mlogf(M_ERROR,M_SHOW,"%s %d pid:%d-errno:%d : %s\n", m, *s, currentProc, errno,emsg);
+ _SFCB_ABORT();
+ //return -1;
}
@@ -651,7 +651,7 @@ void localConnectServer()
int nsocket,ssocket;
unsigned int cl, notDone=1;
char *path,cMsg[264];
-
+
struct _msg {
unsigned int size;
char oper;
@@ -660,7 +660,7 @@ void localConnectServer()
} msg;
mlogf(M_INFO,M_SHOW,"--- localConnectServer started\n");
-
+
if (getControlChars("localSocketPath", &path)!=0) {
mlogf(M_INFO,M_SHOW,"--- localConnectServer failed to start\n");
}
--
1.6.0.2