[LTP] [PATCH] open04: add EMFILE check
Cyril Hrubis
chrubis@suse.cz
Tue Sep 20 16:21:33 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.
> >>
> >
> > Ok, should I send patch v2 like this below?
> >
> > Note: the automation test open04 got passed but I'm not sure
> > if this has a side effect on logs. But from my observation, some
> > tests (with old-API) log can't be collected anymore.
> >
>
> Seems we shouldn't fix by adding 'close-on-exec' flag simply,
> it brings more issues to some old-API tests, I'm still looking into
> the problems which look like caused by ltp-pan designed.
Sound strange, what is the problem here.
> So can we just merge the patch as the original?
Sounds sensible for the release, feel free to add:
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list