#endif
/* if not priority send now the answer back to client */
- if (!(event->any.priority & EDG_WLL_LOGFLAG_SYNC)) {
+ if (!(event->any.priority & (EDG_WLL_LOGFLAG_SYNC|EDG_WLL_LOGFLAG_SYNC_COMPAT))) {
if (!send_answer_back(con,answer,timeout)) {
answer_sent = 1;
}
/* send message via IPC (UNIX socket) */
if (!noipc) {
- if (event->any.priority & EDG_WLL_LOGFLAG_SYNC) {
+ if (event->any.priority & (EDG_WLL_LOGFLAG_SYNC|EDG_WLL_LOGFLAG_SYNC_COMPAT)) {
edg_wll_ll_log(LOG_DEBUG,"Initializing 2nd UNIX socket (%s) for priority messages confirmation...",confirm_sock_name);
if(init_confirmation() < 0) {
edg_wll_ll_log(LOG_DEBUG,"error.\n");
goto edg_wll_log_proto_server_end_1;
} else edg_wll_ll_log(LOG_DEBUG,"o.k.\n");
- if (event->any.priority & EDG_WLL_LOGFLAG_SYNC) {
+ if (event->any.priority & (EDG_WLL_LOGFLAG_SYNC|EDG_WLL_LOGFLAG_SYNC_COMPAT)) {
edg_wll_ll_log(LOG_INFO,"Waiting for confirmation...");
if ((count = wait_for_confirmation(timeout, &answer)) < 0) {
edg_wll_ll_log(LOG_INFO,"error.\n");
p += 12; /* skip the key and = */
n = atoi(p);
- if((n & EDG_WLL_LOGFLAG_SYNC) == 0) {
+ if((n & (EDG_WLL_LOGFLAG_SYNC|EDG_WLL_LOGFLAG_SYNC_COMPAT)) == 0) {
/* normal asynchronous message */
*receipt = 0L;
}