mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Teach fish to exit without destructors in the normal path
This commit is contained in:
parent
6b602a4589
commit
e285d2939b
1 changed files with 2 additions and 1 deletions
3
fish.cpp
3
fish.cpp
|
@ -554,5 +554,6 @@ int main(int argc, char **argv)
|
|||
if (g_log_forks)
|
||||
printf("%d: g_fork_count: %d\n", __LINE__, g_fork_count);
|
||||
|
||||
return res?STATUS_UNKNOWN_COMMAND:proc_get_last_status();
|
||||
exit_without_destructors(res ? STATUS_UNKNOWN_COMMAND : proc_get_last_status());
|
||||
return EXIT_FAILURE; //above line should always exit
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue