diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-10 17:50:45 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-10 19:10:38 +0200 |
commit | 11c6be30491ebe4e41380f48a271c57bcff4b043 (patch) | |
tree | a920a9b345e2760d0b425de6678f03c1a4669cc8 /src/tools/cbr/cbr_server.c | |
parent | 26b20744a441705accbe550aa0b996f8601a9404 (diff) | |
download | ouroboros-11c6be30491ebe4e41380f48a271c57bcff4b043.tar.gz ouroboros-11c6be30491ebe4e41380f48a271c57bcff4b043.zip |
lib, irmd: Bind AP instances to AP_subsets
This call will allow grouping AP instances of a certain AP together
which are configured identically. Adds the bind operation to dev and
updates the applications to make use of this call. Flow_alloc is now
only called with the pid and doesn't send the apn anymore.
Diffstat (limited to 'src/tools/cbr/cbr_server.c')
-rw-r--r-- | src/tools/cbr/cbr_server.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/cbr/cbr_server.c b/src/tools/cbr/cbr_server.c index fc23363f..d0666551 100644 --- a/src/tools/cbr/cbr_server.c +++ b/src/tools/cbr/cbr_server.c @@ -206,7 +206,7 @@ int server_main() sigaction(SIGHUP, &sig_act, NULL) || sigaction(SIGPIPE, &sig_act, NULL)) { printf("Failed to install sighandler.\n"); - exit(EXIT_FAILURE); + return -1; } if (pthread_mutex_init(&fds_lock, NULL)) { @@ -216,7 +216,12 @@ int server_main() if (pthread_cond_init(&fds_signal, NULL)) { printf("Failed to init cond.\n"); - exit(EXIT_FAILURE); + return -1; + } + + if (api_bind(NULL) < 0) { + printf("Failed to bind the server api."); + return -1; } for (i = 0; i < THREADS_SIZE; i++) |