Re: [info-performer] Trouble Forking in Performer

New Message Reply Date view Thread view Subject view Author view

From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 08/22/2002 18:32:09


Hi Max !

I have a guess to what may happen:

Performer responds to signals: SIGCHLD, SIGHUP. When it gets them, it checks
whether the process that died was a Performer process (it keeps pid's of
Performer processes). If it is, it exits the Performer program.

In your fork code, you should make sure that your new process doesn't take the
APP process pid. Your forked process is the one returning 0:

    if (fork() == 0)
    {
        do_forked_stuff();
        exit(0);
    }

If this isn't helping, can you please try to add your fork code to simple.c
and send me the result (where your fork makes simple.c exit) ?

-yair

>
> I want to fork in Performer so I can play audio files as directional cues, but
> everytime I try to fork, even if it is a trivial fork, it causes the program
> to exit. Does anyone know a workaround or what is going on with my program?
> Max
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>

-- 
\_________  \_____  \__    \__  \_____        
\_________  \_____   \__   \__  \_____         Yair Kurzion
       \__     \__   \____\__      \__         yair++at++sgi.com
       \__          \__  \__                  (650) 933-6502
       \__          \__   \__          
       \__          \__    \__             


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Aug 22 2002 - 18:32:45 PDT

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