summaryrefslogtreecommitdiffstats
path: root/src/vcl/vcl_test_server.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-09-07 14:32:58 -0700
committerDamjan Marion <dmarion@me.com>2018-09-08 12:12:13 +0000
commitde9f08b0302d5b4cdc8fbfeb9a9585f46e8314f2 (patch)
tree563b654d8337e5502f994b33fd08a361a46c2df3 /src/vcl/vcl_test_server.c
parentda3eec1672d66131ec85f8420f4df070e6cf326d (diff)
vcl: register workers in order
Change-Id: Ibc74e7f7587f8b17fc0dcec20cc4530b9dd4c3ca Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl/vcl_test_server.c')
-rw-r--r--src/vcl/vcl_test_server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vcl/vcl_test_server.c b/src/vcl/vcl_test_server.c
index 8d97d0cfaa6..2fdd7ec157d 100644
--- a/src/vcl/vcl_test_server.c
+++ b/src/vcl/vcl_test_server.c
@@ -467,7 +467,8 @@ vts_worker_init (vcl_test_server_worker_t * wrk)
conn_pool_expand (wrk, SOCK_SERVER_MAX_TEST_CONN + 1);
if (wrk->wrk_index)
- vppcom_worker_register ();
+ if (vppcom_worker_register ())
+ vtfail ("vppcom_worker_register()", 1);
wrk->listen_fd = vppcom_session_create (ssm->cfg.proto,
0 /* is_nonblocking */ );