rust-lang / rustc_codegen_gcc

libgccjit AOT codegen for rustc
Apache License 2.0
893 stars 61 forks source link

y.sh cargo run swallows the signal emitted by the running process #496

Closed antoyo closed 2 months ago

antoyo commented 2 months ago

For instance, if the process segfaults, ./y.sh cargo run will not emit a SIGSEGV signal while it should do that.

GuillaumeGomez commented 2 months ago

I don't think signals should be emitted by the parent as well (in this case, SIGSEGV tells that a memory access was wrong, which is only the case of the child, not the parent). We should display which signal ended the process though if any.

antoyo commented 2 months ago

cargo does it, so I believe we should do the same.

bjorn3 commented 2 months ago

On Unix you could exec cargo instead of spawning it as subprocess. That is what cargo-clif and rustc-clif do.