summaryrefslogtreecommitdiff
path: root/src/user/app/ext2fs/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/ext2fs/main.c')
-rw-r--r--src/user/app/ext2fs/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/user/app/ext2fs/main.c b/src/user/app/ext2fs/main.c
index f6d65cc..65e7460 100644
--- a/src/user/app/ext2fs/main.c
+++ b/src/user/app/ext2fs/main.c
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
struct handle {
uint32_t n;
@@ -191,6 +192,8 @@ err:
int
main(int argc, char **argv)
{
+ intr_set(NULL);
+
if (argc < 2) errx(1, "bad usage");
// TODO pread/pwrite for normal handles
FILE *disk = fopen(argv[1], "r+");