[LTP] [PATCH v16 2/2] open16: allow restricted O_CREAT of FIFOs and regular files
Wei Gao
wegao@suse.com
Fri Oct 23 16:23:02 CEST 2026
On Fri, Oct 23, 2026 at 11:55:59AM +0200, Cyril Hrubis wrote:
> Hi!
> > > > + exit(0);
> > >
> > > Do we need this explicit exit?
> > Yes i think exit(0) is necessary because only the child process reaches this point.
>
> Any child that returns to the test library calls exit(0).
Thanks Cyril and Petr for pointing this out, and sorry for the oversight on my part.
For above case SAFE_FORK() returns early in the parent process, only the child reaches this
last point and we do not need duplicate exit(0) since child will encounter
run_tests check if (tst_getpid() != context->main_pid) and do exit(0).
Will update it in next patch.
>
> --
> Cyril Hrubis
> chrubis@suse.cz
More information about the ltp
mailing list