aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/server.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-09 15:53:11 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-09 17:37:44 +0200
commit0600cacfadf00e916340f2394f1d3bfc173a3d0b (patch)
tree4b1900b096de3d2b3ad49094e86adc310ec79dac /src/server.c
parenttest: attempt to fix random port selection again (diff)
downloadcimple-0600cacfadf00e916340f2394f1d3bfc173a3d0b.tar.gz
cimple-0600cacfadf00e916340f2394f1d3bfc173a3d0b.zip
store process output in SQLite
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server.c b/src/server.c
index a4358d5..8e2fab3 100644
--- a/src/server.c
+++ b/src/server.c
@@ -295,13 +295,13 @@ static int server_handle_cmd_finished(const struct msg *request, UNUSED struct m
int ret = 0;
int run_id = 0;
- struct proc_output output;
+ struct proc_output *output;
ret = msg_finished_parse(request, &run_id, &output);
if (ret < 0)
return ret;
- ret = storage_run_finished(&server->storage, run_id, output.ec);
+ ret = storage_run_finished(&server->storage, run_id, output);
if (ret < 0) {
log_err("Failed to mark run %d as finished\n", run_id);
goto free_output;
@@ -310,7 +310,7 @@ static int server_handle_cmd_finished(const struct msg *request, UNUSED struct m
log("Marked run %d as finished\n", run_id);
free_output:
- proc_output_free(&output);
+ proc_output_destroy(output);
return ret;
}