delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/05/30/16:16:57

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: 048321887-0001 AT t-online DOT de (Udo Kuhnt)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Using DR-DOS fork in DJGPP
Date: 30 May 2004 13:12:55 -0700
Organization: http://groups.google.com
Lines: 20
Message-ID: <4d201f78.0405301212.164cba62@posting.google.com>
References: <uoeok2abs DOT fsf AT gnu DOT org> <u3c5vbous DOT fsf AT gnu DOT org> <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> <uwu33ad61 DOT fsf AT gnu DOT org> <4d201f78 DOT 0405230527 DOT 3f17fb4b AT posting DOT google DOT com> <2719-Sun23May2004185224+0300-eliz AT gnu DOT org> <f7f2b0tp6atvgj7rgqg83bo9mo2asdsndf AT 4ax DOT com> <ud64u8jcz DOT fsf AT gnu DOT org> <4d201f78 DOT 0405270004 DOT 9eec890 AT posting DOT google DOT com> <9451-Thu27May2004145923+0300-eliz AT gnu DOT org>
NNTP-Posting-Host: 217.93.40.195
X-Trace: posting.google.com 1085947975 14648 127.0.0.1 (30 May 2004 20:12:55 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Sun, 30 May 2004 20:12:55 +0000 (UTC)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Eli Zaretskii" <eliz AT gnu DOT org> wrote in message news:<9451-Thu27May2004145923+0300-eliz AT gnu DOT org>...
> > From: 048321887-0001 AT t-online DOT de (Udo Kuhnt)
> > Newsgroups: comp.os.msdos.djgpp
> > Date: 27 May 2004 01:04:46 -0700
> > 
> > I do not think that in Unix, file position is shared between processes.
> 
> They do, for inherited file handles.  An inherited handle doesn't have
> its own entry in the system file tables, it just points to the same
> entry as the original handle in the parent.  So, for such handles,
> moving the file position in one process necessarily moves it in the
> other, as they share the same file position.
> 
> If you think otherwise, please try a simple test program and see for
> yourself.

Sorry, I did not know this. Now I understand why you said that file handles
could not be inherited between VMs. So X_PCreate is perhaps really better
suited for this task than Z_Dom_Fork - that is, if it is at all possible to
use one of these functions to emulate a POSIX fork. :-/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019