> 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: Practice of using fork() - comp.unix.programmerNow you're talking about creating a resource > *before* a fork and the problems associated with using it after. Huh? The presumption is that you have a program ... fork() race in SIGCHLD handler - comp.unix.programmerIn the case where you're having problems, the signal has been delivered before you're ready. But given that fork() doesn't guarantee which executes first (parent or ... fork (UDP) server - comp.unix.programmeri'm writing a UDP protocol to transfer file, I have a problem into serverside : I'd like to fork the ... But if you're going that way, why not use TCP directly ... How to diagnose performance problems in web applications? - comp ...... themselves, and a new OS and hardware aren't going to solve the problem. If you're seeing ... you can configure Apache to simply pre-fork all it's every going to pre-fork ... Unix Systems Programming Newbie - exec format error - comp.unix ...After fork(), I use execl in the parent code to invoke the child ... Can you show us > some of the code that has this problem? > > My guess is that you're looking at ... EOF not detected while reading a pipe - comp.unix.programmer ...I have a problem with implementing pipe in my own shell ... The child process executes ls (by fork and exec), writes ... Re. Error in reading compressed file - comp.soft-sys ... nth day of the year? - comp.lang.awk... but system() function is very slow in awk (fork new ... Recipes: | My code in this post, if any, A Problem ... And since we're only talking about the day of the year ... File descriptor suddenly goes bad - comp.unix.programmer ...I have this serious problem with a file descriptor that for ... Just a guess but do you fork and does the child then ... just as bad ... are consistent in their usage, they're ... How to implement a function to copy file on LINUX ? - comp.unix ...... char *src_file, const char *des_file) { int pid = fork ... file,des_file,0); } } Plus error checking if you're ... it is actively being written - comp.os.linux ..... problem ... Connection refused problem - comp.unix.programmerThe problem is that i always get a connection refused error. ... include <stdio.h> int daemonize(void) { switch ( fork ... If you're running on a little-endian machine, line a ... Wayne Willcox - Re: fork problem - sourceware.org: Free software ...Re: fork problem. From: Wayne Willcox <wayne at reliant dot immure dot com> To: cygwin at cygwin dot com; Date: Wed, 5 Apr 2006 11:21:13 -0500; Subject: Re: fork problem Corinna Vinschen - Re: Fork issues with long command lines and ...Re: Fork issues with long command lines and long $PATH. From: Corinna Vinschen <corinna-cygwin at cygwin dot com> To: cygwin at cygwin dot com; Date: Thu, 17 Feb 2011 ... 7/12/2012 3:10:56 PM
|