From: Brandon P. <br...@if...> - 2008-12-11 19:40:54
|
On 08:32 Fri 05 Dec 2008, Nad...@bu... wrote: > + mqd = mq_open(mqname, O_WRONLY); > + if (mqd == (mqd_t)-1) { > + tst_resm(TBROK, "cinit: mq_open() failed (%s)", > + strerror(errno)); > + cleanup(TBROK); > + } Use O_EXCL to ensure you are the only one chatting on this mq and that a previously killed test didn't fail to clean this up. |