Sponsored by: The FreeBSD Foundation
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
| virtual_main.c | ||
|---|---|---|
| 2657 | You don't need to do this cleanup if we exit due to an error? | |
| virtual_main.c | ||
|---|---|---|
| 2657 | If we do get here, then both cuse and the cuse device will have been initialized. Or do you mean something else? | |
| virtual_main.c | ||
|---|---|---|
| 2657 | I mean, if we call cuse_init(), then hit an error and call err(), we'll exit without having called cuse_uninit(). Is that ok? Should we be using atexit() instead? | |
| virtual_main.c | ||
|---|---|---|
| 2657 | Well, it looks like cuse_uninit() isn't doing anything special, unlike cuse_dev_destroy(), which issues an ioctl to destroy the created cuse device. So as in the other review regarding cleanup on exit, that call isn't really important. I wouldn't spend much time on it. | |