TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: LEON VARGHESE
from: ERIK WARMELINK
date: 1997-09-08 00:11:00
subject: UNIX`s fork

Leon, 05 Sep you wrote to All:
 LV> e.g I have a variable producer. Then I create a child
 LV> process. 
 LV> char producer = 'A';
 LV> int pid = fork();                // now we have 2 processes
 LV> I want to increment producer to 'B' and pass it to the
 LV> child. 
I think using a pipe would be a good way to do this (see pipe(2)). Perhaps 
you can even use popen(3).
Bye,
 Erik 
---
---------------
* Origin: WarmelinkE@vertis.nl (2:282/1.60)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.