Commit cf0eafbd authored by Felix Hamann's avatar Felix Hamann

fix: restarts falsely sent an error code to samctl

parent e85cb9db
......@@ -88,15 +88,16 @@ handle_req (
}
sam_log_tracef ("sending reply to client (%d)", ret->rc);
zsock_send (client_rep, "is", ret->rc, ret->msg);
int rc = (ret->rc == SAM_RET_RESTART)? 0: ret->rc;
zsock_send (client_rep, "is", rc, ret->msg);
if (ret->allocated) {
free (ret->msg);
}
int rc = ret->rc;
free (ret);
return (rc == SAM_RET_RESTART)? -1: 0;
return (ret->rc == SAM_RET_RESTART)? -1: 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment