Steps to reproduce:
- make x
- make -j4 foo
Expected output:
./x
rjob is 3
wjob is 4
number of jobs is 1
Observed output:
./x
rjob is 3
wjob is 4
read make job token 43 +
read make job token 43 +
read make job token 43 +
number of jobs is 4
The description in http://mad-scientist.net/make/jobserver.html says that
make will close the jobserver fds when it runs a job that's not another
make, which it decides by looking for $(MAKE)
in the command or +
at
the beginning of the command. My reading of the make source code agrees
with this description, but I'm seeing different behavior. I'm confused.