aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2026-09-05 11:33:18 +0000
committeronelin <oscar@nelin.dk>2026-09-05 11:33:18 +0000
commit2027db0a980fd179537bbce2cef6f29a57929c4b (patch)
treec86d53b9c8b206cfe5701edd56031f8727d62c0f /main.c
parentb86db843ec4838f6785bc66a6813f5e324ffb5de (diff)
Open files with CLOEXEC
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index aafad09..616bd80 100644
--- a/main.c
+++ b/main.c
@@ -66,7 +66,7 @@ main(int argc, char* argv[]) {
Token_t* tokens = NULL;
Location_t** lines = NULL;
- f = fopen(argv[1], "r");
+ f = fopen(argv[1], "re");
if (f == NULL) {
fprintf(stdout, "! Failed to open file: %s\n", argv[1]);
}