From owner-freebsd-current Sat Mar 20 21: 5: 1 1999 Delivered-To: freebsd-current@freebsd.org Received: from iquest3.iquest.net (iquest3.iquest.net [209.43.20.203]) by hub.freebsd.org (Postfix) with SMTP id 2DA0D14DA5 for ; Sat, 20 Mar 1999 21:04:59 -0800 (PST) (envelope-from toor@dyson.iquest.net) Received: (qmail 21354 invoked from network); 21 Mar 1999 05:04:38 -0000 Received: from dyson.iquest.net (198.70.144.127) by iquest3.iquest.net with SMTP; 21 Mar 1999 05:04:38 -0000 Received: (from root@localhost) by dyson.iquest.net (8.9.1/8.9.1) id AAA03667; Sun, 21 Mar 1999 00:04:37 -0500 (EST) From: "John S. Dyson" Message-Id: <199903210504.AAA03667@dyson.iquest.net> Subject: Re: rfork() In-Reply-To: from Alfred Perlstein at "Mar 21, 99 00:04:20 am" To: bright@rush.net (Alfred Perlstein) Date: Sun, 21 Mar 1999 00:04:37 -0500 (EST) Cc: dyson@iquest.net, samit@usa.ltindia.com, commiters@freebsd.org, freebsd-current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Sat, 20 Mar 1999, John S. Dyson wrote: > > > Michael E. Mercer said: > > > Hello, > > > > > > This was posted to freebsd-questions with no reply. > > > I tried this and the child process created a core file. > > > I also tried the other options and they seem to work. > > > Just RFPROC and RFMEM DON'T! > > > > > rfork(RFMEM) doesn't easily work from C. You need to > > create an assembly stub. > > > > -- > > John | Never try to teach a pig to sing, > > dyson@iquest.net | it makes one look stupid > > jdyson@nc.com | and it irritates the pig. > > > > I've seen about 6 people ask about this because the manual lies about > what is done. I asked a while back about it, and John was kind enough > to dig up some code that used rfork to properly split the stack should > I try to dig it up? > I suggest trying to find the example. I might have it sitting around here also. John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message