From owner-p4-projects@FreeBSD.ORG Sat Sep 23 09:39:14 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DC74116A416; Sat, 23 Sep 2006 09:39:13 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E49B16A403 for ; Sat, 23 Sep 2006 09:39:13 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D01F43D66 for ; Sat, 23 Sep 2006 09:39:13 +0000 (GMT) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8N9dDxo043315 for ; Sat, 23 Sep 2006 09:39:13 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8N9dCgk043312 for perforce@freebsd.org; Sat, 23 Sep 2006 09:39:12 GMT (envelope-from rdivacky@FreeBSD.org) Date: Sat, 23 Sep 2006 09:39:12 GMT Message-Id: <200609230939.k8N9dCgk043312@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rdivacky@FreeBSD.org using -f From: Roman Divacky To: Perforce Change Reviews Cc: Subject: PERFORCE change 106541 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Sep 2006 09:39:14 -0000 http://perforce.freebsd.org/chv.cgi?CH=106541 Change 106541 by rdivacky@rdivacky_witten on 2006/09/23 09:38:17 This fixes clone05 test from LTP. But I dont understand the logic much this will need someone to look at it because its possible that we are waiting and timeouting or something. Anyway - linux_vfork() doesnt seem to need this which is strange. Affected files ... .. //depot/projects/linuxolator/src/sys/amd64/linux32/linux32_machdep.c#4 edit .. //depot/projects/linuxolator/src/sys/i386/linux/linux_machdep.c#3 edit Differences ... ==== //depot/projects/linuxolator/src/sys/amd64/linux32/linux32_machdep.c#4 (text+ko) ==== @@ -705,6 +705,7 @@ if (args->flags & CLONE_VFORK) { /* wait for the children to exit, ie. emulate vfork */ PROC_LOCK(p2); + p2->p_flag |= P_PPWAIT; while (p2->p_flag & P_PPWAIT) msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); PROC_UNLOCK(p2); ==== //depot/projects/linuxolator/src/sys/i386/linux/linux_machdep.c#3 (text+ko) ==== @@ -528,6 +528,7 @@ if (args->flags & CLONE_VFORK) { /* wait for the children to exit, ie. emulate vfork */ PROC_LOCK(p2); + p2->p_flag |= P_PPWAIT; while (p2->p_flag & P_PPWAIT) msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0); PROC_UNLOCK(p2);