aboutsummaryrefslogtreecommitdiffstats
path: root/src/coopgammad.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-12 11:24:50 +0200
committerMattias Andrée <maandree@kth.se>2016-07-12 11:24:50 +0200
commita27250396644e7f603dc6de3e685b53e1671bf1f (patch)
treef3c48f6f863dece7a1562bdd2a4e5ccd4ca631fe /src/coopgammad.c
parentRename project: gammad => coopgammad (diff)
downloadcoopgammad-a27250396644e7f603dc6de3e685b53e1671bf1f.tar.gz
coopgammad-a27250396644e7f603dc6de3e685b53e1671bf1f.tar.bz2
coopgammad-a27250396644e7f603dc6de3e685b53e1671bf1f.tar.xz
Add loop that waits on sockets
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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;