| 851 | } |
| 852 | |
| 853 | static void |
| 854 | signal_handler(__rte_unused int signum) |
| 855 | { |
| 856 | struct vhost_blk_ctrlr *ctrlr; |
| 857 | |
| 858 | ctrlr = vhost_blk_ctrlr_find(dev_pathname); |
| 859 | if (ctrlr == NULL) |
| 860 | return; |
| 861 | |
| 862 | if (ctrlr->started) |
| 863 | destroy_device(ctrlr->vid); |
| 864 | |
| 865 | vhost_blk_ctrlr_destroy(ctrlr); |
| 866 | exit(0); |
| 867 | } |
| 868 | |
| 869 | int main(int argc, char *argv[]) |
| 870 | { |
nothing calls this directly
no test coverage detected