Re: reconfiguring Performer during run-time
Mario Veraart (rioj7++at++fel.tno.nl)
Tue, 6 Oct 1998 13:09:04 +0200 (MET DST)
Marc Erich Latoschik wrote:
>
> Hallo all,
> i have a few questions about reconfiguring Performer setups during
> run-time.
> Is there, in any case, a chance to switch Multiprocessing and Multipipe
> setups during run-time? I have written a viewsetup class that
> encapsulates all information at
> one place and lets the user specifie all modes, all pipes and which
> pipes are handled
> by which HW-pipe and so on via a configuration file. Now i want a list
> of these
> setups, with different settings of course, and switch on-line between
> them.
>
> The problem is, thge configuration has to be done between pfInit and
> pfConfig. If triggered again the calls are ignored. If using pfExit, you
> know it ;(, the application exits.
>
> Does anyone have a clue? Or is everybody restarting their apps to change
> settings?
You might try to spawn a performer child, with fork or sproc,
wait in the parent till the child dies, you can use the SIGCHILD
signal. If you use signals use the sigset() call and NOT sigaction().
And determine if you have to restart the performer child.
Mario
This archive was generated by hypermail 2.0b2
on Tue Oct 06 1998 - 04:10:56 PDT