From nobody@FreeBSD.org  Wed Apr 17 01:34:48 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 5C8DD37B404
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Apr 2002 01:34:23 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g3H8YM894314;
	Wed, 17 Apr 2002 01:34:22 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200204170834.g3H8YM894314@freefall.freebsd.org>
Date: Wed, 17 Apr 2002 01:34:22 -0700 (PDT)
From: Artem Zagorulko <artem@inobject.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: rfork results the core dump with RFMEM flag. 
X-Send-Pr-Version: www-1.0

>Number:         37178
>Category:       kern
>Synopsis:       rfork results the core dump with RFMEM flag.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 17 01:40:01 PDT 2002
>Closed-Date:    Mon Apr 22 02:54:00 PDT 2002
>Last-Modified:  Mon Apr 22 02:54:00 PDT 2002
>Originator:     Artem Zagorulko
>Release:        FreeBSD 4.5
>Organization:
Inter Object
>Environment:
>Description:
rfork results the core dump with RFMEM flag  when I use kill function after child creating to signal to child.

>How-To-Repeat:
     I can't get lightweight processes with rfork
>Fix:
      
>Release-Note:
>Audit-Trail:

From: David Malone <dwmalone@maths.tcd.ie>
To: Artem Zagorulko <artem@inobject.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/37178: rfork results the core dump with RFMEM flag.
Date: Sun, 21 Apr 2002 19:07:02 +0100

 On Wed, Apr 17, 2002 at 01:34:22AM -0700, Artem Zagorulko wrote:
 > rfork results the core dump with RFMEM flag  when I use kill function after child creating to signal to child.
 
 I believe that you need magic glue to get rfork to create lightweight
 threads - as the man page says "thus rfork() with the RFMEM flag
 may not generally be called directly from high level languages
 including C".
 
 	David.
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Mon Apr 22 02:52:56 PDT 2002 
State-Changed-Why:  
Using rfork() with RFMEM flag requires magic which isn't easy to 
do from a high level language. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37178 
>Unformatted:
