Commit 9a40681f authored by claes's avatar claes

mq_attr removed in mq_open

parent f47f716b
/* /*
* Proview $Id: rt_errh.c,v 1.10 2006-07-10 10:55:23 claes Exp $ * Proview $Id: rt_errh.c,v 1.11 2006-07-27 10:24:45 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -534,14 +534,10 @@ openLog () ...@@ -534,14 +534,10 @@ openLog ()
#if defined OS_LYNX || defined OS_LINUX #if defined OS_LYNX || defined OS_LINUX
if (mqid == (mqd_t)-1) { if (mqid == (mqd_t)-1) {
char name[64]; char name[64];
struct mq_attr attr;
char *busid = getenv(pwr_dEnvBusId); char *busid = getenv(pwr_dEnvBusId);
sprintf(name, "%s_%s", LOG_QUEUE_NAME, busid ? busid : ""); sprintf(name, "%s_%s", LOG_QUEUE_NAME, busid ? busid : "");
attr.mq_maxmsg = 2048; mqid = mq_open(name, O_WRONLY | O_NONBLOCK, 0, 0);
attr.mq_msgsize = sizeof(errh_sMsg);
attr.mq_flags = O_NONBLOCK;
mqid = mq_open(name, O_WRONLY | O_NONBLOCK, 0, &attr);
if (mqid == (mqd_t)-1) { if (mqid == (mqd_t)-1) {
char string[256]; char string[256];
char *s; char *s;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment