diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-12 11:24:50 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-12 11:24:50 +0200 |
commit | a27250396644e7f603dc6de3e685b53e1671bf1f (patch) | |
tree | f3c48f6f863dece7a1562bdd2a4e5ccd4ca631fe /src/coopgammad.c | |
parent | Rename project: gammad => coopgammad (diff) | |
download | coopgammad-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 'src/coopgammad.c')
-rw-r--r-- | src/coopgammad.c | 3 |
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; |