Skip to content

Revert "Return error when external command core dumped (#5908)" - #5987

Merged
rgwood merged 1 commit into
nushell:mainfrom
rgwood:revert-core-dump-change
Jul 8, 2022
Merged

rgwood merged 1 commit into
nushell:mainfrom
rgwood:revert-core-dump-change

Conversation

@rgwood

@rgwood rgwood commented Jul 7, 2022

Copy link
Copy Markdown
Contributor

This reverts PR #5908. I believe that we misunderstood how that PR works when reviewing it, and it adds complexity to run_external without effectively addressing the original issue (#5903).

The call to exit_status_rx.recv_timeout(Duration::from_millis(100)) runs immediately after the external process starts up, and so it only catches core dumps that happen ~100ms into that process's lifetime.

I think we will need to take a different approach to effectively report on process exit information (like the terminating signal, whether there was a core dump). Maybe we can do what we already do for exit codes (see Pipeline Data::ExternalStream::exit_code) but for an entire std::process::ExitStatus struct.

@rgwood
rgwood merged commit 8345851 into nushell:main Jul 8, 2022
@sholderbach sholderbach mentioned this pull request Oct 20, 2022
5 of 7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant