[m-rev.] diff: Fix bug #233

Julien Fischer juliensf at csse.unimelb.edu.au
Fri Nov 25 00:49:10 AEDT 2011



On Thu, 24 Nov 2011, Paul Bone wrote:

> Fix an error where the runtime system aborted with "sem_post: Invalid
> argument".
>
> runtime/mercury_context.c:
>    The error message as important, since sem_timedwait actually raised the
>    error.  When this occurred the error was incorrectly reported as being
>    raised by the sem_post syscall.
>
>    Use >= rather than > when testing if the nanoseconds field of a timeval
>    structure for sem_timedwait should overflow into the seconds field.

Does this also need to go on to the release branch?

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list