File: Notes.txt

package info (click to toggle)
haskell-gtk 0.15.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,964 kB
  • sloc: haskell: 3,346; ansic: 826; makefile: 161
file content (11 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
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.