[omniORB] system() under omniORB4

bjorn rohde jensen bjensen@fastmail.fm
Wed Oct 9 21:49:01 2002


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.

Yours sincerely,

Bjorn