From owner-p4-projects@FreeBSD.ORG Sun Oct 15 13:52:01 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 61E7D16A5FE; Sun, 15 Oct 2006 13:52:01 +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 3C5AE16A5E3 for ; Sun, 15 Oct 2006 13:52:01 +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 DEC8843D7D for ; Sun, 15 Oct 2006 13:51:57 +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 k9FDpv0L070999 for ; Sun, 15 Oct 2006 13:51:57 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9FDpvHY070996 for perforce@freebsd.org; Sun, 15 Oct 2006 13:51:57 GMT (envelope-from rdivacky@FreeBSD.org) Date: Sun, 15 Oct 2006 13:51:57 GMT Message-Id: <200610151351.k9FDpvHY070996@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 107949 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: Sun, 15 Oct 2006 13:52:01 -0000 http://perforce.freebsd.org/chv.cgi?CH=107949 Change 107949 by rdivacky@rdivacky_witten on 2006/10/15 13:51:42 Backout 107882 and add comment why is RFLINUXTHPN needed. Affected files ... .. //depot/projects/linuxolator/src/sys/kern/kern_fork.c#4 edit .. //depot/projects/linuxolator/src/sys/sys/unistd.h#3 edit Differences ... ==== //depot/projects/linuxolator/src/sys/kern/kern_fork.c#4 (text+ko) ==== @@ -527,7 +527,13 @@ sigacts_copy(newsigacts, p1->p_sigacts); p2->p_sigacts = newsigacts; } - p2->p_sigparent = SIGCHLD; + /* this flag is used by linuxthreads and is passed + * in via rfork() + */ + if (flags & RFLINUXTHPN) + p2->p_sigparent = SIGUSR1; + else + p2->p_sigparent = SIGCHLD; p2->p_textvp = p1->p_textvp; p2->p_fd = fd; ==== //depot/projects/linuxolator/src/sys/sys/unistd.h#3 (text+ko) ==== @@ -169,7 +169,7 @@ #define RFCFDG (1<<12) /* close all fds, zero fd table */ #define RFTHREAD (1<<13) /* enable kernel thread support */ #define RFSIGSHARE (1<<14) /* share signal handlers */ -#define RFUNUSED (1<<16) /* UNUSED */ +#define RFLINUXTHPN (1<<16) /* do linux clone exit parent notification */ #define RFSTOPPED (1<<17) /* leave child in a stopped state */ #define RFHIGHPID (1<<18) /* use a pid higher then 10 (idleproc) */ #define RFPPWAIT (1<<31) /* parent sleeps until child exits (vfork) */