Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

envoy: fail if agent can't be fetched

Regression since the new IPC stuff landed
  • Loading branch information...
commit 8bd07c1d5923a728fb4210aa6675253de2ce37ab 1 parent fc6cb67
@vodik authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 agents.c
  2. +2 −2 agents.h
View
4 agents.c
@@ -71,13 +71,13 @@ static ssize_t envoy_request(const struct agent_request_t *req, struct agent_dat
return nbytes_r;
}
-bool envoy_agent_launch(enum agent type, struct agent_data_t *data)
+int envoy_agent_launch(enum agent type, struct agent_data_t *data)
{
const struct agent_request_t req = { .type = type };
return envoy_request(&req, data) < 0 ? -errno : 0;
}
-bool envoy_agent_get_environment(enum agent type, struct agent_data_t *data)
+int envoy_agent_get_environment(enum agent type, struct agent_data_t *data)
{
const struct agent_request_t req = { .type = type, .opts = AGENT_ENVIRON };
return envoy_request(&req, data) < 0 ? -errno : 0;
View
4 agents.h
@@ -62,8 +62,8 @@ struct agent_data_t {
extern const struct agent_t Agent[];
-bool envoy_agent_launch(enum agent type, struct agent_data_t *data);
-bool envoy_agent_get_environment(enum agent type, struct agent_data_t *data);
+int envoy_agent_launch(enum agent type, struct agent_data_t *data);
+int envoy_agent_get_environment(enum agent type, struct agent_data_t *data);
enum agent lookup_agent(const char *string);
Please sign in to comment.
Something went wrong with that request. Please try again.