Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19039 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1154,8 +1154,8 @@ fork_team(void)
|
|||||||
cookie = 0;
|
cookie = 0;
|
||||||
while (get_next_area_info(B_CURRENT_TEAM, &cookie, &info) == B_OK) {
|
while (get_next_area_info(B_CURRENT_TEAM, &cookie, &info) == B_OK) {
|
||||||
void *address;
|
void *address;
|
||||||
area_id area = vm_copy_area(team->address_space->id, info.name, &address, B_CLONE_ADDRESS,
|
area_id area = vm_copy_area(team->address_space->id, info.name,
|
||||||
info.protection, info.area);
|
&address, B_CLONE_ADDRESS, info.protection, info.area);
|
||||||
if (area < B_OK) {
|
if (area < B_OK) {
|
||||||
status = area;
|
status = area;
|
||||||
break;
|
break;
|
||||||
@@ -1177,8 +1177,9 @@ fork_team(void)
|
|||||||
// ToDo: copy image list
|
// ToDo: copy image list
|
||||||
|
|
||||||
// create a kernel thread under the context of the new team
|
// create a kernel thread under the context of the new team
|
||||||
threadID = spawn_kernel_thread_etc(fork_team_thread_start, parentThread->name,
|
threadID = spawn_kernel_thread_etc(fork_team_thread_start,
|
||||||
parentThread->priority, forkArgs, team->id, team->id);
|
parentThread->name, parentThread->priority, forkArgs,
|
||||||
|
team->id, team->id);
|
||||||
if (threadID < 0) {
|
if (threadID < 0) {
|
||||||
status = threadID;
|
status = threadID;
|
||||||
goto err4;
|
goto err4;
|
||||||
|
|||||||
Reference in New Issue
Block a user