From: Philippe Gerum <rpm@xenomai.org>
To: Jeff Webb <jeff.webb@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] sem_timedwait return value
Date: Sat, 02 Dec 2006 00:00:31 +0100 [thread overview]
Message-ID: <1165014031.4952.188.camel@domain.hid> (raw)
In-Reply-To: <45708CA5.8040004@domain.hid>
On Fri, 2006-12-01 at 14:12 -0600, Jeff Webb wrote:
> In my userspace POSIX program, I get a '-1' return value from sem_timedwait, even when the function succeeds. When the function succeeds, errno is '-1' as well. I am using this workaround at the moment:
>
> result = sem_timedwait(&cas_sem, &wake_time);
> if (result < 0 && errno > 0) /* errno > 0 to work around xenomai bug */
> {
> print_msg(WARN_MSG, "sem_wait returned with error code %d\n",
> errno);
> continue;
> }
>
> I am using xenomai 2.2.4, but I think the problem exists in other branches as well. I believe the attached patch against the trunk should fix the problem. Do you agree?
>
Oops, yes. This bug belongs to me. Applied, thanks.
> Thanks,
>
> Jeff
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
prev parent reply other threads:[~2006-12-01 23:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-01 20:12 [Xenomai-help] sem_timedwait return value Jeff Webb
2006-12-01 23:00 ` Philippe Gerum [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1165014031.4952.188.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=jeff.webb@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.