From: zhaogongyi via ltp <ltp@lists.linux.it>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: LTP List <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH] syscalls/fork02: new test for fork()
Date: Tue, 1 Nov 2022 01:05:49 +0000 [thread overview]
Message-ID: <0aaeb7d55c194ca79b2958dc8c4e5204@huawei.com> (raw)
Hi Cyril,
>
> Hi!
> > > > 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.
>
> I guess that this is described in POSIX in:
>
> "The new process (child process) shall be an exact copy of the calling
> process (parent process) except as detailed below:"
>
> at https://pubs.opengroup.org/onlinepubs/9699919799/
>
> And there is nothing about working dir in the list of special cases hence
> working dir is exactly the same as for parent since it has to be exact copy
> of parent.
>
It seems reasonable to not test the result of full inheritance from the parent process, otherwise there are a lot of testcases.
Regards,
Gongyi
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2022-11-01 1:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-01 1:05 zhaogongyi via ltp [this message]
2022-11-02 9:06 ` [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-10-25 2:30 zhaogongyi via ltp
2022-10-31 13:46 ` 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=0aaeb7d55c194ca79b2958dc8c4e5204@huawei.com \
--to=ltp@lists.linux.it \
--cc=chrubis@suse.cz \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.