[LTP] syscalls: Add epoll_ctl07
Cyril Hrubis
chrubis@suse.cz
Wed Jul 15 13:07:51 CEST 2026
Hi!
> A fallback definition belongs in lapi/epoll.h:
>
> #ifndef EPOLLEXCLUSIVE
> #define EPOLLEXCLUSIVE (1u << 28)
> #endif
Indeed it fails to compile on older distros, I will add the fallback.
> > + if (round == NWAITERS)
> > + tst_res(TPASS, "each event woke exactly one waiter");
> > +
> > + SAFE_CLOSE(fds[0]);
> > + SAFE_CLOSE(fds[1]);
> > +}
>
> run() forks NWAITERS children but never calls tst_reap_children().
> Each child calls exit(0) after the checkpoint wake, so they are all
> finished by the time the loop exits, but the parent leaves them as
> zombies. The structurally identical epoll_wait15.c calls
> tst_reap_children() after its equivalent loop. Should tst_reap_children()
> be called here before or after the result is reported?
Children that exit(0) are autocollected by the test library.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list