commit 82ec5b5cdb2a59c53f22be40318c4574136813ef
parent e32b5bf2ca56c4ebaaf7a95194592d5ee0a82e8e
Author: Pollux <pollux@pollux.codes>
Date: Mon, 10 Feb 2025 22:33:53 -0600
fix: Exit after running program
Signed-off-by: Pollux <pollux@pollux.codes>
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/sopen.c b/sopen.c
@@ -4,6 +4,7 @@
#include <regex.h>
#include <spawn.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -138,6 +139,8 @@ main(int argc, const char **argv) {
child_args[2] = NULL;
execvp(rules[n].program, child_args);
+
+ exit(0);
}
error: