/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
*
* This program is a free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
*
* This program is a free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
- merror(QUEUE_ERROR, __local_name, path,
+ merror(QUEUE_ERROR, __local_name, path,
snprintf(tmpstr,OS_MAXSTR,"%c:%s->%s",loc, locmsg, message);
}
else
snprintf(tmpstr,OS_MAXSTR,"%c:%s->%s",loc, locmsg, message);
}
else
/* We attempt 5 times to send the message if
* the receiver socket is busy.
* After the first error, we wait 1 second.
/* We attempt 5 times to send the message if
* the receiver socket is busy.
* After the first error, we wait 1 second.
/* Unable to send. Socket busy */
sleep(1);
if(OS_SendUnix(queue, tmpstr, 0) < 0)
/* Unable to send. Socket busy */
sleep(1);
if(OS_SendUnix(queue, tmpstr, 0) < 0)