commit 198abfd37bcaceab29fc0c96f7b3a906b1c1c6c8
parent 661bbceeea493ddca8d2d549bd60ee85cd064363
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: