Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 677c1b5134368504c2e447757584d19e > files > 547

ghc-gtk-devel-0.11.2-5.fc14.i686.rpm

If you use GtkSocket/GtkPlug with multi-processes framework.
DON'T use function `forkProcess` to spawn process!

Because `forkProcess` just simple call C `fork`, haven't any protection,
then two processes will got *race condition*,
you will get X Window error (such as `BadWindow`) when those two processes
try to access same X resource.

So use `runProcess` or `runCommand` instead.
Above two functions add MVar lock when spawn processes (call c_runInteractiveProcess)
to make sure two processes won't get *race condition* problem on X resource.