[Xenomai] [PATCH] Split rtdm_fd_enter up, move the functionality where we store the fd until after the open() call succeeds. Calls where open() fail a fd is left in the tree even after the cleanup code is executed. If this fd number is used again we will fail the call to open until a different fd is used. This patch addresses this situation by not adding the fd into the tree until open has succeeded and the fd is valid.
rpm at xenomai.org
Tue Dec 5 14:28:55 CET 2017
On 12/04/2017 04:22 AM, Greg Gallagher wrote:
> include/cobalt/kernel/rtdm/fd.h | 2 ++
> kernel/cobalt/posix/mqueue.c | 7 ++++++-
> kernel/cobalt/posix/timerfd.c | 4 ++++
> kernel/cobalt/rtdm/core.c | 12 +++++++++---
> kernel/cobalt/rtdm/fd.c | 24 ++++++++++++++++--------
> 5 files changed, 37 insertions(+), 12 deletions(-)
Looks good. Merged, thanks.
More information about the Xenomai