[omniORB] system() under omniORB4

Mike Mascari mascarm@mascari.com
Wed Oct 9 22:17:00 2002


bjorn rohde jensen wrote:
> Hi guys,
> 
>  There is quite a problem with using "system" on several
> platforms, notably unix flavors, where the it is implemented
> using signals exchanged between the parent process and the
> child process to actually execute the desired program. This
> wreaks havoc with the ORB threads, which might recieve the
> signals intended for the thread calling "system" from the
> child process. All the threads in the parrent process are
> as default equally likely to be chosen to handle signals from
> other processes. Basically you should not call "system" from
> a multithreaded program.

Is there any thread-safe way to achieve the same effect?

Mike Mascari
mascarm@mascari.com