Make sure fish has the currect exit status

darcs-hash:20061102134859-ac50b-692f9e9aff838ea375e5cf29eeae1e29b1b75338.gz
This commit is contained in:
axel
2006-11-02 23:48:59 +10:00
parent fab18bae80
commit 13a85ee3f1
4 changed files with 12 additions and 6 deletions

4
main.c
View File

@@ -382,7 +382,6 @@ int main( int argc, char **argv )
}
proc_fire_event( L"PROCESS_EXIT", EVENT_EXIT, getpid(), res );
history_destroy();
proc_destroy();
@@ -399,6 +398,5 @@ int main( int argc, char **argv )
intern_free_all();
return res;
return res?STATUS_UNKNOWN_COMMAND:proc_get_last_status();
}