From 8210771d091366c46c9d0919c5f247526882d6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 20 Nov 2004 22:31:28 +0000 Subject: [PATCH] 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 --- src/kernel/core/team.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/kernel/core/team.c b/src/kernel/core/team.c index 1139ab6b05..6f19b5a2d0 100644 --- a/src/kernel/core/team.c +++ b/src/kernel/core/team.c @@ -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++;