mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-29 00:21:14 -03:00
Teach fish to exit without destructors in the normal path
This commit is contained in:
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user