Oops, exec_team() should rename the team as well.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10062 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-11-20 22:31:28 +00:00
parent 77a6e0beb6
commit 8210771d09
+5 -1
View File
@@ -1067,7 +1067,11 @@ exec_team(int32 argCount, char **args, int32 envCount, char **env)
remove_images(team);
vfs_exec_io_context(team->io_context);
// cut the path from the main thread name
// rename the team
strlcpy(team->name, args[0], B_OS_NAME_LENGTH);
// cut the path from the team name and rename the main thread, too
threadName = strrchr(args[0], '/');
if (threadName != NULL)
threadName++;