[dm-devel] [PATCH 02/21] multipathd (coverity): check atexit() return value
mwilck at suse.com
mwilck at suse.com
Thu Nov 18 23:13:19 UTC 2021
From: Martin Wilck <mwilck at suse.com>
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
multipath/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/multipath/main.c b/multipath/main.c
index 47e799b..d6291f7 100644
--- a/multipath/main.c
+++ b/multipath/main.c
@@ -838,7 +838,8 @@ main (int argc, char *argv[])
conf = get_multipath_config();
conf->retrigger_tries = 0;
conf->force_sync = 1;
- atexit(cleanup_vecs);
+ if (atexit(cleanup_vecs))
+ condlog(1, "failed to register cleanup handler for vecs: %m");
while ((arg = getopt(argc, argv, ":adDcChl::eFfM:v:p:b:BrR:itTquUwW")) != EOF ) {
switch(arg) {
case 1: printf("optarg : %s\n",optarg);
--
2.33.1
More information about the dm-devel
mailing list