Don't close jobserver fd when executing external subcommand #10477
Labels
A-custom-subcommands
Area: custom 3rd party subcommand plugins
A-jobserver
Area: jobserver, concurrency, parallelism
C-bug
Category: bug
Problem
I tried to use
cargo-fuzz
from a Makefile, expecting it to use make's jobserver to limit concurency.When running it as
cargo-fuzz
, it worked as intended, but when running it ascargo fuzz
, it did not seem to acknowledge make job count.I found
cargo-fuzz
environment variables contained--jobserver-auth=3,4
as expected, but these file descriptors are closed.Steps
cargo-sleep
and put it into your $PATHall: +cargo sleep 10
sleep
. It containsMAKEFLAGS= -j2 --jobserver-auth=3,4
(actual number may vary)sleep
, 3 and 4 (in my case) are not open.Possible Solution(s)
No response
Notes
As stated there is a simple workaround, calling the sub-command directly instead of through cargo
Version
The text was updated successfully, but these errors were encountered: