[prev in list] [next in list] [prev in thread] [next in thread]
List: hurd-bug
Subject: Re: Confusing definitions and declarations of mig_dealloc_reply_port()
From: Diego Nieto Cid <dnietoc () gmail ! com>
Date: 2015-11-04 13:50:35
Message-ID: CAK5adC5kjpfw_978uy7Mgi0UkHmCLhpmmr4r9q5SjBxjWEGyag () mail ! gmail ! com
[Download RAW message or body]
Hi
2015-11-04 6:30 GMT-03:00 Svante Signell <svante.signell@gmail.com>:
>
> Diego,
> Cc: bug-hurd.
Oh, I mistakenly hit 'Reply'. I hate when that happens :(
> On Tue, 2015-11-03 at 15:55 -0300, Diego Nieto Cid wrote:
>
> > I'd suggest to assert (port == arg || arg == MACH_PORT_NULL) just to
> > be sure users don't expect
> > other port to be deallocated, which would be a bug.
>
> See above.
>
Hmm, I should have written
assert (__hurd_local_reply_port == arg || arg == MACH_PORT_NULL)
AIUI any other values are bogus given how 'mig_get_reply_port' and
'mig_dealloc_reply_port' are meant to be paired.
May be someone more knowledgeable can shed some ligth to the issue.
> >
> > [*]...probably because of this :)
>
> Why not change mig, is it holy?
No. I just meant whoever wrote that code wasn't willing or didn't have the
time to engage in such a task.
[Attachment #3 (text/html)]
<div dir="ltr">Hi<br><br>2015-11-04 6:30 GMT-03:00 Svante Signell <<a \
href="mailto:svante.signell@gmail.com">svante.signell@gmail.com</a>>:<br>><br>> \
Diego,<br>> Cc: bug-hurd.<br><br>Oh, I mistakenly hit 'Reply'. I hate when \
that happens :(<br><br>> On Tue, 2015-11-03 at 15:55 -0300, Diego Nieto Cid \
wrote:<br>><br>> > I'd suggest to assert (port == arg || arg == \
MACH_PORT_NULL) just to<br>> > be sure users don't expect<br>> > \
other port to be deallocated, which would be a bug.<br>><br>> See \
above.<br>><br><br>Hmm, I should have written<br><br> assert \
(__hurd_local_reply_port == arg || arg == MACH_PORT_NULL)<br><br>AIUI any other \
values are bogus given how 'mig_get_reply_port' and \
'mig_dealloc_reply_port' are meant to be paired.<br><br>May be someone more \
knowledgeable can shed some ligth to the issue.<br><br>> ><br>> > \
[*]...probably because of this :)<br>><br>> Why not change mig, is it \
holy?<br><br>No. I just meant whoever wrote that code wasn't willing or \
didn't have the time to engage in such a task.</div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic