Does now call _thread_on_exit_notification().
Note, this probably should be called in exit() not here (for now, I copied the BeOS behaviour). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3074 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
|
|
||||||
extern int main(int argc, char **argv);
|
extern int main(int argc, char **argv);
|
||||||
|
extern void _thread_do_exit_notification(void);
|
||||||
|
|
||||||
int _start(int argc, char **argv, char **, struct uspace_program_args *);
|
int _start(int argc, char **argv, char **, struct uspace_program_args *);
|
||||||
|
|
||||||
@@ -33,6 +34,9 @@ _start(int argc, char **argv, char **_environ, struct uspace_program_args *args)
|
|||||||
|
|
||||||
retcode = main(args->argc, args->argv);
|
retcode = main(args->argc, args->argv);
|
||||||
|
|
||||||
|
_thread_do_exit_notification();
|
||||||
|
// ToDo: must also (only) be called in exit()!
|
||||||
|
|
||||||
exit(retcode);
|
exit(retcode);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user