Permalink
Browse files

envoy: fail if agent can't be fetched

Regression since the new IPC stuff landed
  • Loading branch information...
vodik committed Dec 11, 2013
1 parent fc6cb67 commit 8bd07c1d5923a728fb4210aa6675253de2ce37ab
Showing with 4 additions and 4 deletions.
  1. +2 −2 agents.c
  2. +2 −2 agents.h
View
@@ -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
@@ -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);

0 comments on commit 8bd07c1

Please sign in to comment.