Ask a Question related to UNIX Programming, Design and Development.
-
Rami #1
Posix queues
I have problems with removing queues. Manual says that mq_unlink does not
remove named queue before all references are released. While developing my
process, it may happen that mq_close is not not called in every thread which
has opened queue... Are those references to queue removed when process is
terminated, even if mq_close was not called ?
And manual says:
However, the mq_unlink() call need not block until all references have
been closed; it may return immediately.
What does these 'need not' and 'may return' mean? Seems like my mq_unlink
call blocks.
Now when I call mq_open with flags O_RDWR | O_CREAT, seems like also open
call blocks, is this because mq_unlink was called and queue is not actually
yet removed ?
Solaris 8.0
BR,
Rami
Rami Guest
-
POSIX::ctermid()
Hi, I just installed a fresh 5.8.3 and noticed that POSIX::ctermid() does not seem to work (all tests were reported as successful during "make... -
ANNOUNCE: POSIX::RT::Semaphore 0.01
POSIX::RT::Semaphore is a Perl interface to POSIX.1b (Realtime) semaphores, at least as supported by your system. ;-) RT semaphores are objects... -
POSIX::getchar
What am I doing wrong? Here are 3 attempts at trying to use getchar. It seems I am following the Usage, but I guess not. $ perl -e 'use... -
lpr to remote print queues
I have 4.3.3 on two identical H70's. Each has a remote print queue defined that points to the same fax server (which is running W2K). If I use 'lpr... -
Standard Posix
Hi! I'am working on Solaris 5.8. My bosss prohibited using comand compress because he said "It's not standard" , but wich standard ? He didn't say... -
Marc Rochkind #2
Re: Posix queues
On Tue, 15 Jul 2003 07:31:35 GMT, Rami <oo.oo@oo.com> wrote:
Yes. Open mqs are closed when process exits.> I have problems with removing queues. Manual says that mq_unlink does not
> remove named queue before all references are released. While developing
> my
> process, it may happen that mq_close is not not called in every thread
> which
> has opened queue... Are those references to queue removed when process is
> terminated, even if mq_close was not called ?
The word "may" "describes a feature or behavior that is optional for an>
> And manual says:
> However, the mq_unlink() call need not block until all references
> have
> been closed; it may return immediately.
>
> What does these 'need not' and 'may return' mean? Seems like my mq_unlink
> call blocks.
implementation." So, as a programmer, you can't depend on it being one way
or the other.
That is a possibility. Standard specifically says this may happen.>
> Now when I call mq_open with flags O_RDWR | O_CREAT, seems like also open
> call blocks, is this because mq_unlink was called and queue is not
> actually
> yet removed ?
>
> Solaris 8.0
>
> BR,
> Rami
>
>
>
Marc Rochkind Guest



Reply With Quote

