Teach fish to exit without destructors in the normal path

This commit is contained in:
ridiculousfish 2013-04-19 10:21:46 -07:00
parent 6b602a4589
commit e285d2939b

View file

@ -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
}