delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/07/13/05:00:15

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Georg <dosusb AT googlemail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Pipe()
Date: Wed, 13 Jul 2011 01:28:07 -0700 (PDT)
Organization: http://groups.google.com
Lines: 21
Message-ID: <9b97a0e5-b352-406d-9504-9947629f7d69@s17g2000yqs.googlegroups.com>
References: <639f9631-f9d6-42b8-bf70-f943afe5afa8 AT n28g2000vbs DOT googlegroups DOT com>
<d87c0a0f-09dd-4f0d-a175-78399d1f4ccb AT g12g2000yqd DOT googlegroups DOT com>
NNTP-Posting-Host: 217.91.63.120
Mime-Version: 1.0
X-Trace: posting.google.com 1310546475 14541 127.0.0.1 (13 Jul 2011 08:41:15 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Wed, 13 Jul 2011 08:41:15 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: s17g2000yqs.googlegroups.com; posting-host=217.91.63.120; posting-account=v5xbdQoAAAAOGc9Ccc-kLZyobvPlN3Qr
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HUALESNKRC
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0,gzip(gfe)
Bytes: 2111
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi Rugxulo,

I looked at it again, the package is doing first a pipe() to establish
the communication and then a fork() to spawn the process in a new
daemon. Basically you can only use these functions if you have a multi-
tasking operating system. Eli is absolutely right here.

A pipe() function seems to be in the libsupp library now and also
there is a pipe() function in pth/pthreads but I do not understand
that implementation.
A fork() as fas as I know is not implemented with DJGPP. One may be
able to convert the fork() in the package to a pthread_create() but I
doubt that will work well in the end.

I will have to see what can be done here. I may just statically link
the functions of the to-be-spawned program with the main program and
convert the socket communication to function calls. However, this then
needs to be done for every new version of this package.

Georg

- Raw text -


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