Add fatal error call to ipc initializations.y

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2083 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Steven Dake 2009-04-18 07:37:15 +00:00
parent 043de4d80a
commit b71418f5e1

View File

@ -608,6 +608,12 @@ static void ipc_log_printf (const char *format, ...) {
va_end (ap);
}
static void ipc_fatal_error(const char *error_msg) {
_logsys_log_printf (ipc_subsys_id, __FUNCTION__,
__FILE__, __LINE__, LOG_LEVEL_ERROR, "%s", error_msg);
exit(EXIT_FAILURE);
}
static int corosync_poll_handler_accept (
hdb_handle_t handle,
int fd,
@ -655,6 +661,7 @@ struct coroipcs_init_state ipc_init_state = {
.malloc = malloc,
.free = free,
.log_printf = ipc_log_printf,
.fatal_error = ipc_fatal_error,
.security_valid = corosync_security_valid,
.service_available = corosync_service_available,
.private_data_size_get = corosync_private_data_size_get,