[LTP] [PATCH v1] Refactor fork09 using new LTP API

Cyril Hrubis chrubis@suse.cz
Wed Nov 1 16:44:53 CET 2023


Hi!
Honestly I'm struggling to understand the point of this test, the
description says:

"Check that child has access to a full set of files"

What is that supposed to mean? I guess that if we wanted to check that
the child has inherited the file descriptors ee should open a few files,
do some changes in the child/parent and check that they are not propagated to
the other one. I.e. reading from a file in child/parent does not change
file offset in parent. Closing a file descriptor from a child/parent
does not close the file in the other one, etc.

Also why do we use fopen() instead of just open()?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list