public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Fw: [PATCH] Fix mq_notify with SIGEV_NONE notification
       [not found] <20040413163605.031af36c.akpm@osdl.org>
@ 2004-04-14  4:52 ` Manfred Spraul
  2004-04-14  6:26   ` Jakub Jelinek
  0 siblings, 1 reply; 2+ messages in thread
From: Manfred Spraul @ 2004-04-14  4:52 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Andrew Morton, linux-kernel, Ulrich Drepper

Hi Jakub,

Jakub wrote:

>mq_notify (q, NULL)
>and
>struct sigevent ev = { .sigev_notify = SIGEV_NONE };
>mq_notify (q, &ev)
>are not the same thing in POSIX, yet the kernel treats them the same.
>
What should mq_notify(q, &{.sigev_notify = SIGEV_NONE}) do? Register a 
notification, but deliver nothing?

--
    Manfred


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fw: [PATCH] Fix mq_notify with SIGEV_NONE notification
  2004-04-14  4:52 ` Fw: [PATCH] Fix mq_notify with SIGEV_NONE notification Manfred Spraul
@ 2004-04-14  6:26   ` Jakub Jelinek
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2004-04-14  6:26 UTC (permalink / raw)
  To: Manfred Spraul; +Cc: Andrew Morton, linux-kernel, Ulrich Drepper

On Wed, Apr 14, 2004 at 06:52:59AM +0200, Manfred Spraul wrote:
> >mq_notify (q, NULL)
> >and
> >struct sigevent ev = { .sigev_notify = SIGEV_NONE };
> >mq_notify (q, &ev)
> >are not the same thing in POSIX, yet the kernel treats them the same.
> >
> What should mq_notify(q, &{.sigev_notify = SIGEV_NONE}) do? Register a 
> notification, but deliver nothing?

Yes.  It makes it impossible to mq_notify for others until the owner
mq_notify (q, NULL) or until a message arrives at the queue while nobody is
blocked in mq_{,timed}receive or until the mqd_t through which it has been
registered is mq_close()d.
It is not very useful, sure, but neither is having two different
ways how to unregister notification, one is completely enough.
At which point it is IMHO better to follow the standard (and what other
OSes do), rather than invent something new.

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-14  6:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20040413163605.031af36c.akpm@osdl.org>
2004-04-14  4:52 ` Fw: [PATCH] Fix mq_notify with SIGEV_NONE notification Manfred Spraul
2004-04-14  6:26   ` Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox