[LTP] [PATCH] open04: add EMFILE check

Cyril Hrubis chrubis@suse.cz
Fri Sep 16 11:39:19 CEST 2022


Hi!
> > I faintly remmeber a similar patch where we decided not to work around
> > for a test harness leaking filedescriptors into testcases.
> >
> 
> This also should be a solution, I searched the mailing list and got a
> patch[1].
> Do you mean adding that close-on-exec flag when opening fd in harness?

Yes, that way you can be sure that no file descriptors are leaked to the
tests.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list