Debian Codegraph @

demo/embedded/Notes.txt

raw
1 If you use GtkSocket/GtkPlug with multi-processes framework.
2 DON'T use function `forkProcess` to spawn process!
3
4 Because `forkProcess` just simple call C `fork`, haven't any protection,
5 then two processes will got *race condition*,
6 you will get X Window error (such as `BadWindow`) when those two processes
7 try to access same X resource.
8
9 So use `runProcess` or `runCommand` instead.
10 Above two functions add MVar lock when spawn processes (call c_runInteractiveProcess)
11 to make sure two processes won't get *race condition* problem on X resource.