diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-02-27 10:01:58 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-05-13 09:17:32 +0200 |
commit | 71c71095e1608b8e0c532fce85c33d99fa0a3000 (patch) | |
tree | ef2acc799bb02bba88c3544237b2b061a0f2148f | |
parent | 60798ce5c1b71c4f8c78cab9f8b2a97987a0c8d9 (diff) |
Pass nullfd for curl stdin
-rw-r--r-- | mod/mod-ci-github.cxx | 4 |
1 files changed, 1 insertions, 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. // |