From c11772766d05eafb5eea5c09e0ba5dc26e47dcc7 Mon Sep 17 00:00:00 2001 From: Francois Kritzinger Date: Tue, 27 Feb 2024 10:01:58 +0200 Subject: Pass nullfd for curl stdin --- mod/mod-ci-github.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx index fbe2fec..112f03b 100644 --- a/mod/mod-ci-github.cxx +++ b/mod/mod-ci-github.cxx @@ -231,7 +231,7 @@ namespace brep // fdpipe errp (fdopen_pipe ()); // stderr pipe. - curl c (path ("-"), + curl c (nullfd, path ("-"), // Write response to curl::in. process::pipe (errp.in.get (), move (errp.out)), curl::post, @@ -249,8 +249,6 @@ namespace brep int sc; // Status code. try { - c.out.close (); // No input required. - // Note: re-open in/out so that they get automatically closed on // exception. // -- cgit v1.1