diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-17 12:11:08 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-17 12:11:08 +0200 |
commit | 9b81e70bb3b364e7ed79871b2af7993cb2892139 (patch) | |
tree | 22feaf71494076b410d929ff5451dd35757ee4d1 | |
parent | 91d0e2cd07f58c44b25e78ec15fee26ede676ddb (diff) | |
download | dwim-9b81e70bb3b364e7ed79871b2af7993cb2892139.tar.gz |
xchord.c: Fix lingering perl process
I don't know why this fixes it, but it does.
-rw-r--r-- | xchord.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |