aboutsummaryrefslogtreecommitdiffstats
path: root/src/coopgammad.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coopgammad.c')
-rw-r--r--src/coopgammad.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/coopgammad.c b/src/coopgammad.c
index 26a9d05..7af87ab 100644
--- a/src/coopgammad.c
+++ b/src/coopgammad.c
@@ -1271,6 +1271,9 @@ int main(int argc, char** argv)
reexec = 0; /* See `if (reexec && !terminate)` */
}
+ if (main_loop() < 0)
+ goto fail;
+
if (reexec && !terminate)
{
size_t buffer_size;