signal(SIGINT, signal_handler);
- rte_vhost_driver_start(dev_pathname);
+ ret = rte_vhost_driver_start(dev_pathname);
+ if (ret < 0) {
+ fprintf(stderr, "Failed to start vhost driver.\n");
+ return -1;
+ }
/* loop for exit the application */
while (1)