2003-06-26 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and wrbuf for a non-creating open.
This commit is contained in:
parent
5283b6437d
commit
51fa7562e2
|
@ -1,3 +1,8 @@
|
||||||
|
2003-06-26 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
|
* libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
|
||||||
|
wrbuf for a non-creating open.
|
||||||
|
|
||||||
2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
|
2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
|
||||||
|
|
||||||
* libc/machine/h8300/setarch.h: New.
|
* libc/machine/h8300/setarch.h: New.
|
||||||
|
|
|
@ -210,7 +210,11 @@ mq_open (const char *name, int oflag, ...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else /* just open it */
|
else /* just open it */
|
||||||
msgqid = msgget (key, 0);
|
{
|
||||||
|
msgqid = msgget (key, 0);
|
||||||
|
wrbuf = (MSG *)malloc (attr->mq_msgsize + sizeof(int));
|
||||||
|
rdbuf = (MSG *)malloc (attr->mq_msgsize + sizeof(int));
|
||||||
|
}
|
||||||
|
|
||||||
/* release semaphore acquired earlier */
|
/* release semaphore acquired earlier */
|
||||||
sb.sem_op = 1;
|
sb.sem_op = 1;
|
||||||
|
|
Loading…
Reference in New Issue