From 71d2531d52d3c23e4032e10db8aa88a158091dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 6 Jan 2006 11:09:44 +0000 Subject: [PATCH] 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 --- src/system/runtime_loader/rld.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/system/runtime_loader/rld.c b/src/system/runtime_loader/rld.c index d4dee6a150..8f0317e54d 100644 --- a/src/system/runtime_loader/rld.c +++ b/src/system/runtime_loader/rld.c @@ -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; }