[openib-general] [openfabrics-ewg] OFED 1.1 RC7 fork() issue.

glebn at voltaire.com glebn at voltaire.com
Tue Oct 17 09:50:00 PDT 2006


On Tue, Oct 17, 2006 at 06:48:22PM +0200, Michael S. Tsirkin wrote:
> Quoting r. glebn at voltaire.com <glebn at voltaire.com>:
> > Subject: Re: [openfabrics-ewg] OFED 1.1 RC7 fork() issue.
> > 
> > On Tue, Oct 17, 2006 at 10:34:23AM -0500, Tang, Changqing wrote:
> > > 
> > > >3. Fork support from kernel 2.6.12 and above is available 
> > > >provided that applications do not use threads. The fork() is 
> > > >supported as long as parent process does not run before child 
> > > >exits or calls exec().
> > > 
> > > After fork(), in child, before exec(), can we call printf(), putenv(),
> > > or even re-direct stdout/stderr ?
> > > 
> > Child can do whatever he wants (except using verbs), but parent can't use
> > verbs until child exits() or execs().
> 
> Or even write to registered pages at all.
> 
Right. Forgot that. So parent better be doing nothing, but waiting.

--
			Gleb.




More information about the general mailing list