TIP: Click on subject to list as thread! ANSI
echo: cis.general_interest
to: Frits Wiarda 71553,3104 (X)
from: Pete Lyall 76703,4230
date: 1993-03-11 09:32:57
subject: #17689-#POSIX compatible fork()

#: 17699 S1/General Interest
    11-Mar-93  09:32:57
Sb: #17689-#POSIX compatible fork()
Fm: Pete Lyall 76703,4230
To: Frits Wiarda 71553,3104 (X)

Frits -

I believe _someone_ wrote a unix fork (Bob Larson?) function, but it's not
native to the delivered OS9 libraries. While I work in both domains (OS9 &
Unix), I always felt that the OS9 method made more sense. Example - you want to
fork a child process, that is not the same as yourself (i.e. 'dir' want to fork
'more'):

  OS9:
       os9fork more
       done


  Unix:

      fork self
      am I self?
        yes - do nothing
        nope - I'm child - exec more
     done

If you don't have access to the larson library additions (possibly on the OS9
server at cabrales), why not just conditionally compile the code for OS9/Unix?

Pete

There are 2 Replies.

SOURCE: compuserve via textfiles.com

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™.