vapi_shm_client_connect() return value is greater than 0 when some failure occurrenced. vapi.c: 1009 if (vapi_shm_client_connect (ctx, (char *) name, 0, response_queue_size, true) < 0) { vl_client_api_unmap (); return VAPI_ECON_FAIL; }