Re: GMAKE 3.81 vs GMAKE 4.2

nikhil jain <[email protected]>
Newsgroups gmane.comp.gnu.make.general
Message-ID <CAP-pfRXpQGz1SxiysLCS87ahzkLjY8xtgemZ-3_9L=wksYJ0yw@mail.gmail.com>
When I say memory , I mean when make starts then in the main function I
have the getpid to give me the parent pid which I save in the env and that
is available to all the child processes so that I can find out when the
parent make has come into child handler by checking getpid == make pid from
env and do some stuff based on it.

On Sun, 22 May 2022 at 6:52 PM, Paul Smith <[email protected]> wrote:

> On Sun, 2022-05-22 at 10:53 +0530, nikhil jain wrote:
> > 1) write some content in a file only if the forked process ID is same
> > as the main make process ID (stored main process ID in the memory as
> > make starts so that it will be available to all the forked process).
>
> I don't understand this.  Yes, make will fork a new process but then it
> immediately does an exec, including when invoking a sub-make, so no
> memory is shared between make processes.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.