Repository navigation
feat: coredump - #6791
feat: coredump#6791
Conversation
|
I should use a signal to send the coredump message.. |
bf1976a to
c29c519
Compare
|
It seems 5d00ece |
c29c519 to
44819ed
Compare
|
And if signal hooks is must needed? maybe just show the program name is better? |
|
Emm. I think print the name is better, how can I get the name of process? |
ebb6392 to
b193d6e
Compare
|
Should not add more signals, just print message is fine |
|
When I first meet |
Emm,I used want to return an Err, but I finally give up to return an error... It will need another channel, and should consider the timeout, then sometimes we cannot receive the coredump message.. |
|
Thanks for picking that up!
|
1: I do not use channel, so .. And I think coredumped will not stop the procress.. |
b193d6e to
54cb44c
Compare
Now I remove the dependence of signal-hook. then it won't conflict with other signal hook .. and always, people can view the whole message from coredumpctl, we just need to tell them it is coredumped, so I think just show it has coredumped is enough, or maybe can be showed with red color? |
a944eb0 to
37fefd2
Compare
37fefd2 to
f72f2ff
Compare
3abdcbc to
2a56440
Compare
|
Now I add a code -2, will -2 used in other place? @sholderbach @WindSoilder |
cdb5126 to
52d9be1
Compare
|
You can try to find all reference to PipelineData::ExternalStream's exit_code field:
|
3fee263 to
698f402
Compare
fix issue in nushell#5903 return Error to pipeline_data, if match error, then return error directly
698f402 to
25cef8f
Compare
|
What's the status on this? Are we ready to land it @WindSoilder @Decodetalkers @sholderbach? |
I think I have finished it.. |
|
Thanks, I think it's ok to me :) |
sholderbach
left a comment
There was a problem hiding this comment.
Looks good to me, the exit code channel seems to be battle tested enough. And having this as an error is great!



Finally
Description
Coredump , try to fix again, here I just print the message, without use channels, so timers or timeout is not need, and all coredump messages will be print on the screen
#5903
Tests
Make sure you've done the following:
Make sure you've run and fixed any issues with these commands:
cargo fmt --all -- --checkto check standard code formatting (cargo fmt --allapplies these changes)cargo clippy --workspace --features=extra -- -D warnings -D clippy::unwrap_used -A clippy::needless_collectto check that you're using the standard code stylecargo test --workspace --features=extrato check that all the tests passDocumentation