Re: fork() problem

  • Follow


> I am an OpenVMS newbie, experiencing some porting problem... I am
> trying to port an Unix program to VMS and of course I have some
> troubles with the fork() system call ;-) 

I work with the Unix Portability people at HP.  Not having a real 
Unix "fork" is a known issue.  fork does all sorts of wonderful 
things, like opening duplicate channels to I/O and so forth.  Changes 
to the kernel of VMS will be required to get that working.

That being said, how are using fork?

If you're just starting a new process, and don't need to share 
resources (mmap memory, I/O, etc.) with the subprocess, you could use 
lib$spawn instead of calling the fork family.

If your new process needs to share some of this stuff, you have a 
design issue on your hands.  At least until VMS V8.3 or so...

--Stan Quayle
Quayle Consulting Inc.

----------
Stanley F. Quayle, P.E. N8SQ  +1 614-868-1363
8572 North Spring Ct., Pickerington, OH  43147  USA
stan-at-stanq-dot-com       http://www.stanq.com



0
Reply squayle (318) 7/11/2004 8:20:06 PM

On Sun, 11 Jul 2004 16:20:06 -0400, "Stanley F. Quayle"
<squayle@insight.rr.com> wrote:

>If you're just starting a new process, and don't need to share 
>resources (mmap memory, I/O, etc.) with the subprocess, you could use 
>lib$spawn instead of calling the fork family.

I need to work with some of the variables of the parent process... I
guess that it will be hard work, at this point :/

-- 
ZHELGADIS THE LIGHTBRINGER (ICQ 33134824)
BAG#008,DPPSJ#000,BAT#013,TFC#012,GAM#026,ZZZZ#027,CID#027,PAN#015
"Aspettare non � mai stato un problema, per me.
Posso trascorrere piacevolmente ore e ore con l'aiuto di un buon caff�"
0
Reply zhelgadis (2) 7/12/2004 9:38:20 AM


On 2004-07-12, Zhelgadis <zhelgadis@togli.questo.email.it> wrote:
> On Sun, 11 Jul 2004 16:20:06 -0400, "Stanley F. Quayle"
><squayle@insight.rr.com> wrote:
>
>>If you're just starting a new process, and don't need to share 
>>resources (mmap memory, I/O, etc.) with the subprocess, you could use 
>>lib$spawn instead of calling the fork family.
>
> I need to work with some of the variables of the parent process... I
> guess that it will be hard work, at this point :/

Just a thought - how about a mailbox or some global memory section?

Thierry
0
Reply thierry12 (4) 7/12/2004 10:05:47 AM

In article <31vyQNWJ0Z9i1ZzoYhtsA7lUvWaj@4ax.com>, "Zhelgadis, aka Jan Valker" <zhelgadis@togli.questo.email.it> writes:
> On Sun, 11 Jul 2004 16:20:06 -0400, "Stanley F. Quayle"
> <squayle@insight.rr.com> wrote:
> 
>>If you're just starting a new process, and don't need to share 
>>resources (mmap memory, I/O, etc.) with the subprocess, you could use 
>>lib$spawn instead of calling the fork family.
> 
> I need to work with some of the variables of the parent process... I
> guess that it will be hard work, at this point :/

   I'd try redesigning to use threads instead of processes.

0
Reply koehler2 (8239) 7/12/2004 12:57:21 PM

3 Replies
55 Views

(page loaded in 0.182 seconds)

Similiar Articles:













7/12/2012 3:10:56 PM


Reply: