tests: support testing fd inheritance over exec

Add facility for testing how (many) file descriptors survive an exec.
This allows implementing O_CLOEXEC tests.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
Pekka Paalanen 2012-04-20 14:22:51 +03:00
parent 7c0aa1a4a3
commit da6b1a8e47
5 changed files with 124 additions and 4 deletions

View file

@ -34,4 +34,7 @@ struct test {
int
count_open_fds(void);
void
exec_fd_leak_check(int nr_expected_fds); /* never returns */
#endif