How to test for forked processes

New Message Reply Date view Thread view Subject view Author view

Bill Storma (bills++at++p3.enzian.com)
Thu, 26 Dec 1996 17:50:20 EST


Fellow Performer users:

Since Performer forks its processes when running in a multi-pipe,
multi-process environment, what is a good way to determine if the
process is the parent or the child ? According to the Performer
Programmers Guide, the forking is done within the pfConfig call.
Therefore any code processed before this call will be run by both the
parent and its children (which is what i want to avoid). I'm sure
others have had this problem; what are the best solutions ? I don't
believe I want to test using the fork() call, since it will create a
child process if called from the parent. Any better ideas ?

Thanks.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Bill Storma Phone: 407-282-1884
Enzian Technology FAX: 407-282-3013
Orlando, Fl. 32817 e-mail: bills++at++p3.enzian.com
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:12 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.