aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-03 16:37:53 +0000
committerOmar Polo <op@omarpolo.com>2021-02-03 16:37:53 +0000
commit4e2e2ab1d3ac93821434c5e7723ffbcda1b0aee4 (patch)
tree9928c59d10211b70327791bb9949cb1f6bd7c273 /gmid.c
parentd672b8fba149427b68a0072c8b28db261833e960 (diff)
refactor executor_main
now it's symmetrical to listener_main().
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gmid.c b/gmid.c
index 319e3f6..bf5bc16 100644
--- a/gmid.c
+++ b/gmid.c
@@ -504,8 +504,9 @@ serve(int argc, char **argv, int *p)
close(p[1]);
p[1] = -1;
}
+ exfd = p[0];
drop_priv();
- return executor_main(p[0]);
+ return executor_main();
}
}