Re: syscalls: Add epoll_ctl07

Cyril Hrubis <[email protected]>
Newsgroups gmane.linux.ltp
Message-ID <[email protected]>
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
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.