From 7eafccef7f5788e54efa5318d9f5af13a0cbd291 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Sat, 19 Jun 2004 22:42:38 +0000 Subject: pre-allocate request structures --- lufis/lufis.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'lufis/lufis.c') diff --git a/lufis/lufis.c b/lufis/lufis.c index f91c1e0..a8b17c9 100644 --- a/lufis/lufis.c +++ b/lufis/lufis.c @@ -793,19 +793,13 @@ static struct fuse_operations lu_oper = { int main(int argc, char *argv[]) { int res; - int pid; res = lufis_init(&argc, &argv); if(res == -1) exit(1); - pid = fork(); - if(pid == -1) - exit(1); - if(pid == 0) { - fuse_main(argc, argv, &lu_oper); - lufis_cleanup(); - } + fuse_main(argc, argv, &lu_oper); + lufis_cleanup(); return 0; } -- cgit v1.2.3