aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-17 12:11:08 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-17 12:11:08 +0200
commit9b81e70bb3b364e7ed79871b2af7993cb2892139 (patch)
tree22feaf71494076b410d929ff5451dd35757ee4d1
parent91d0e2cd07f58c44b25e78ec15fee26ede676ddb (diff)
downloaddwim-9b81e70bb3b364e7ed79871b2af7993cb2892139.tar.gz
xchord.c: Fix lingering perl process
I don't know why this fixes it, but it does.
-rw-r--r--xchord.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/xchord.c b/xchord.c
index f8fc70b..970c141 100644
--- a/xchord.c
+++ b/xchord.c
@@ -82,10 +82,7 @@ main(int argc, char *argv[])
/* 1 pressed + 3 pressed + 3 released (third step) */
if(p == 2 && rev->detail == 3){
p = 3;
- if(vfork() == 0){
- execlp("dwim", "dwim", NULL);
- err(1, "execlp");
- }
+ system("dwim");
}
/* 1 released (reset) */
if((p == 1 || p == 3) && rev->detail == 1) p = 0;