No longer calls _thread_do_exit_notification() as exit() now does it.
Note, this is incompatible with the BeOS behaviour, which didn't call the hooks when you exit()ed a program. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3108 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
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 *);
|
||||
|
||||
@@ -34,9 +33,6 @@ _start(int argc, char **argv, char **_environ, struct uspace_program_args *args)
|
||||
|
||||
retcode = main(args->argc, args->argv);
|
||||
|
||||
_thread_do_exit_notification();
|
||||
// ToDo: must also (only) be called in exit()!
|
||||
|
||||
exit(retcode);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user