diff options
author | Simon Rettberg | 2014-06-06 20:40:53 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-06-06 20:40:53 +0200 |
commit | 4b4726ce6dae79843293f724f85a1164d0edf7c6 (patch) | |
tree | 7ad467d8540f61bbcd7dd3c2dc39cf725217bc90 /ldadp.c | |
parent | Actually really fix helper_connect4 when passing a hostname (diff) | |
download | ldadp-4b4726ce6dae79843293f724f85a1164d0edf7c6.tar.gz ldadp-4b4726ce6dae79843293f724f85a1164d0edf7c6.tar.xz ldadp-4b4726ce6dae79843293f724f85a1164d0edf7c6.zip |
Bail out on startup if an AD server is not reachable
Diffstat (limited to 'ldadp.c')
-rw-r--r-- | ldadp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -47,7 +47,8 @@ int main(int argc, char **argv) // Add listener if (ePoll_add(EPOLLIN, (epoll_item_t*)&lsn) == -1) bail("Could not add listen socket to epoll fd"); // Init AD uplinks - server_initServers(); + if (!server_initServers()) + exit(1); // Daeaeaemon if (isdaemon && daemon(1, 0) == -1) bail("daemon() failed."); // Do the mainloop |