summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xkb.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/xkb.py b/xkb.py
index e4dfa9514..60009c957 100644
--- a/xkb.py
+++ b/xkb.py
@@ -42,9 +42,11 @@ class XKB:
args = args + ("-variant", variant)
path = ("/usr/X11R6/bin/setxkbmap",)
- if (os.fork () == 0):
+ child = os.fork ()
+ if (child == 0):
os.execv (path[0], path + args)
+ pid, status = os.waitpid(child, 0)
return
# don't use any of our code, since it seems to corrupt