X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: 23 May 2004 08:08:22 +0200 Message-Id: From: Eli Zaretskii To: djgpp AT delorie DOT com In-reply-to: <4d201f78.0405210913.26a5ffcb@posting.google.com> (048321887-0001 AT t-online DOT de) Subject: Re: Using DR-DOS fork in DJGPP References: <4d201f78 DOT 0405181653 DOT 16a677b6 AT posting DOT google DOT com> <4d201f78 DOT 0405191158 DOT 63550b51 AT posting DOT google DOT com> <7704-Wed19May2004233123+0300-eliz AT gnu DOT org> <4d201f78 DOT 0405191847 DOT 6697f90d AT posting DOT google DOT com> <4d201f78 DOT 0405200540 DOT 307bb15a AT posting DOT google DOT com> <9743-Thu20May2004201223+0300-eliz AT gnu DOT org> <4d201f78 DOT 0405210913 DOT 26a5ffcb AT posting DOT google DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: 048321887-0001 AT t-online DOT de (Udo Kuhnt) > Newsgroups: comp.os.msdos.djgpp > Date: 21 May 2004 10:13:22 -0700 > > Well, I do not know anything about the start command you mentioned On a Windows machine, type "start /?" from the DOS box's prompt, and read there. > but I thought that if Z_Dom_Fork makes an exact copy of the first 4 > MB of the address room, then it would also copy the file handles. No, copying the process's address space is not enough. File handles are indices into the OS data structure; to copy a file handle, you need an equivalent of the `dup' system call (DOS function 45h), otherwise handle inheritance will not work. > > It would be interesting to see what happens with this aspect of the > > process created by X_PCreate. > > Since the child and parent process share the same VM, the file handles would > probably be the same for both processes. ??? Are you saying that all the programs that run in the same VM have identical handles? That's simply not true. > If this succeeds, the X_PCreate function could be used to fork a new process > in DJGPP, right? I think it's easier to simply ask Caldera about this.