[Coco] OS-9 "C" question

Bill Pierce ooogalapasooo at aol.com
Thu Aug 8 07:24:16 EDT 2013


Willard
I was still talking about paths.
I guess what I was asking is if the paths need to be reset after the forked program exits so the calling program can continue to print, read & write normally.
I think you answered that saying the paths reset to normal after the fork.
I understand how the wait( ) works as I use it when forking or calling my subs with DW4Man. Wait(0) will wait till the forked program ends before resuming operation. In this case, I wouldn't want a wait state as I need to process data as it comes in. The forked program will die after the data is sent, only to be called again later.

In this case, I assume if I fork the program again, I need to do the whole "pipe"/"dup" routine again?

Thanks again

Bill Pierce
My Music from the Tandy/Radio Shack Color Computer 2 & 3
https://sites.google.com/site/dabarnstudio/
Co-Webmaster of The TRS-80 Color Computer Archive
http://www.colorcomputerarchive.com/
Co-Contributor, Co-Editor for CocoPedia
http://www.cocopedia.com/wiki/index.php/Main_Page
E-Mail: ooogalapasooo at aol.com




-----Original Message-----
From: Willard Goosey <goosey at virgo.sdc.org>
To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
Sent: Thu, Aug 8, 2013 12:26 am
Subject: Re: [Coco] OS-9 "C"  question


On Wed, Aug 07, 2013 at 11:18:01PM -0400, Bill Pierce wrote:
> 
> Thanks Willard, that's what I was looking for.

No problem.  Pipes and paths and child processes can get a little
complicated. 

> Now, how would you reverse that to bring things back to normal for a
> program to keep on running normally once the forked program has
> closed?

Are we still talking about paths or are we talking about processes
now?  lookterm2 restores its paths to their original sources after the
os9fork().  

I'm not entirely sure about all the details of how fork, exit,
and wait interact with each other under OS-9... 

Willard
-- 
Willard Goosey  goosey at sdc.org
Socorro, New Mexico, USA
I search my heart and find Cimmeria, land of Darkness and the Night.
  -- R.E. Howard

--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco

 



More information about the Coco mailing list