[PATCH 2/2] cobalt: switch hand over status to -ENODEV for non-RTDM fd

Philippe Gerum rpm at xenomai.org
Thu Aug 29 16:45:24 CEST 2019


On 8/29/19 4:12 PM, Lange Norbert wrote:
> 
> I ran into a rather big issue with linux filehandles
> I use Xenomai master on ipipe-core-4.19.60-x86-5 with those patches,
> (can't be 100% sure its not some kernel/userspace conflict, but I doubt it)
> 
> What happens is that upon a __cobalt_close with a linux filehande, the
> syscall sc_cobalt_close returns EBADF, but that means the libc close will
> never be tried and filehandles are leaking like mad.
> 

You may need v3:

https://lab.xenomai.org/xenomai-rpm.git/commit/?h=for-upstream/next&id=42b7d3d43d9476a101103ad1a3d52ee6822b52e6

-- 
Philippe.



More information about the Xenomai mailing list