diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-08-10 19:16:41 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-08-10 19:16:41 +0200 |
commit | 16cf56fc3c31a2f6201c4d9cc6e6ad314f9a1f37 (patch) | |
tree | 8a1654ef31bb091c285887a3b6c5d4ad1287382c /src/tools/oping/oping_server.c | |
parent | 88e820cd80323cf7f08fb7be1e683200016e9d34 (diff) | |
parent | 11c6be30491ebe4e41380f48a271c57bcff4b043 (diff) | |
download | ouroboros-16cf56fc3c31a2f6201c4d9cc6e6ad314f9a1f37.tar.gz ouroboros-16cf56fc3c31a2f6201c4d9cc6e6ad314f9a1f37.zip |
Merged in dstaesse/ouroboros/be-api-bind (pull request #203)
lib, irmd: Bind AP instances to AP_subsets
Diffstat (limited to 'src/tools/oping/oping_server.c')
-rw-r--r-- | src/tools/oping/oping_server.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/oping/oping_server.c b/src/tools/oping/oping_server.c index a5021cba..9e2fa12f 100644 --- a/src/tools/oping/oping_server.c +++ b/src/tools/oping/oping_server.c @@ -148,6 +148,11 @@ int server_main() return -1; } + if (api_bind(NULL) < 0) { + printf("Failed to bind the server instance."); + return -1; + } + pthread_create(&server.cleaner_pt, NULL, cleaner_thread, NULL); pthread_create(&server.accept_pt, NULL, accept_thread, NULL); pthread_create(&server.server_pt, NULL, server_thread, NULL); |