From: zhaogongyi via ltp <ltp@lists.linux.it>
To: "xuyang2018.jy@fujitsu.com" <xuyang2018.jy@fujitsu.com>
Cc: LTP List <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH] syscalls/fork02: new test for fork()
Date: Tue, 25 Oct 2022 02:30:07 +0000 [thread overview]
Message-ID: <03c247795faf46bc83f4f59af886d53b@huawei.com> (raw)
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.
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2022-10-25 2:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-25 2:30 zhaogongyi via ltp [this message]
2022-10-31 13:46 ` [LTP] [PATCH] syscalls/fork02: new test for fork() Cyril Hrubis
-- strict thread matches above, loose matches on Subject: below --
2022-11-16 2:51 zhaogongyi via ltp
2022-11-01 1:05 zhaogongyi via ltp
2022-11-02 9:06 ` Cyril Hrubis
2022-10-21 6:50 Zhao Gongyi via ltp
2022-10-25 2:18 ` xuyang2018.jy
2022-11-07 10:49 ` Richard Palethorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=03c247795faf46bc83f4f59af886d53b@huawei.com \
--to=ltp@lists.linux.it \
--cc=xuyang2018.jy@fujitsu.com \
--cc=zhaogongyi@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox