From f1b837be39c31f771c6426beacc06746a791df4c Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Wed, 14 Dec 2016 20:19:05 -0700 Subject: [PATCH] check function return value Address new coverity error report --- src/common/stepd_api.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/stepd_api.c b/src/common/stepd_api.c index fbadc6611ef..d10b447918f 100644 --- a/src/common/stepd_api.c +++ b/src/common/stepd_api.c @@ -688,8 +688,11 @@ stepd_cleanup_sockets(const char *directory, const char *nodename) if (fd == -1) { debug("Unable to connect to socket %s", path); } else { - stepd_signal_container( - fd, protocol_version, SIGKILL); + if (stepd_signal_container( + fd, protocol_version, SIGKILL) == -1) { + debug("Error sending SIGKILL to job step %u.%u", + jobid, stepid); + } close(fd); } -- GitLab