[LTP] [PATCH] syscalls/fork02: new test for fork()
zhaogongyi
zhaogongyi@huawei.com
Tue Oct 25 04:30:07 CEST 2022
Hi,
>
> Hi Zhao
>
> > Verify that current workdir correctly inherited by child.
>
> Why test this? Does fork() man-pages menthion this?
>
Man-pages does not menthion this, and the other field inherited does not mentioned too.
As far as I know, the child process inherite:
Uids and gids
Environment
Stack
Share memory
Opened fd
Flags of close-on-exec
Pgid
Cwd
Rootdir
Mask
Rlimit
Tty
Maybe we can verify them similarly.
More information about the ltp
mailing list