Re: pfMultiProcess problems.

New Message Reply Date view Thread view Subject view Author view

Randall Barker (barker++at++cs.nps.navy.mil)
Thu, 28 Mar 1996 10:10:23 -0800


On Mar 28, 12:54pm, Jean Daigle wrote:
> Subject: Re: pfMultiProcess problems.
> How about;
>
> {
> int iMode;
>
> pfMultiprocess(PFMP_DEFAULT);
> iMode = pfGetMultiprocess();
>
> assert(iMode != PFMP_DEFAULT);
>
> pfMultiProcess(iMode | PFMP_FORK_DBASE);
>
> /* ... */
>
> pfConfig();
> }
>
>
> I'm assuming that pfMultiProcess() actually takes effect immediately,
> so that pfGetMultiprocess() returns something sensible. The
> assert() call will test the hypothesis.
>
>-- End of excerpt from Jean Daigle

You would think that's the way it would be, but It wasn't the case when I tried
it, the second call to pfGetMultiprocess just returned PFMP_DEFAULT. It does
not take effect until pfConfig has been called, but by then it is too late.
 Thanks though...

-Randall

-- 
Randall E. Barker                 Spanagel Hall, Room 254
Naval Postgraduate School         e-mail: barker++at++cs.nps.navy.mil
Computer Science, Code CS/Barker  Phone:  408.656.XXXX
Monterey, California 93943        Fax:    408.656.2814
URL: http://www-npsnet.cs.nps.navy.mil/barker/

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:36 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.