terminate_program() is now actually called - forgot to commit this before...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15849 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2006-01-06 11:09:44 +00:00
parent 34a9556215
commit 71d2531d52

View File

@ -283,6 +283,7 @@ int
runtime_loader(void *_args)
{
void *entry = NULL;
int returnCode;
gProgramArgs = (struct uspace_program_args *)_args;
@ -302,6 +303,10 @@ runtime_loader(void *_args)
return -1;
// call the program entry point (usually _start())
return ((int (*)(int, void *, void *))entry)(gProgramArgs->argc,
returnCode = ((int (*)(int, void *, void *))entry)(gProgramArgs->argc,
gProgramArgs->argv, gProgramArgs->envp);
terminate_program();
return returnCode;
}