mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
[fix] don't panic on failure to acquire jobserver token
This commit is contained in:
parent
cbc064b341
commit
be6a09f96b
@ -1452,8 +1452,8 @@ fn start_executing_work<B: ExtraBackendMethods>(
|
||||
Err(e) => {
|
||||
let msg = &format!("failed to acquire jobserver token: {}", e);
|
||||
shared_emitter.fatal(msg);
|
||||
// Exit the coordinator thread
|
||||
panic!("{}", msg)
|
||||
codegen_done = true;
|
||||
codegen_aborted = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
8
tests/run-make/jobserver-error/Makefile
Normal file
8
tests/run-make/jobserver-error/Makefile
Normal file
@ -0,0 +1,8 @@
|
||||
include ../../run-make-fulldeps/tools.mk
|
||||
|
||||
# only-linux
|
||||
|
||||
# Test compiler behavior in case: `jobserver-auth` points to correct pipe which is not jobserver.
|
||||
|
||||
all:
|
||||
bash -c 'echo "fn main() {}" | MAKEFLAGS="--jobserver-auth=3,3" $(RUSTC) - 3</dev/null' 2>&1 | diff jobserver.stderr -
|
4
tests/run-make/jobserver-error/jobserver.stderr
Normal file
4
tests/run-make/jobserver-error/jobserver.stderr
Normal file
@ -0,0 +1,4 @@
|
||||
error: failed to acquire jobserver token: early EOF on jobserver pipe
|
||||
|
||||
error: aborting due to previous error
|
||||
|
Loading…
Reference in New Issue
Block a user