aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github.cxx
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-02-27 10:01:58 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-10-15 09:05:27 +0200
commitc0ceb2df3bcd68047fa516fcd04997938d754694 (patch)
tree4b5e0427986bec74bbf7bf7952819223d3e27b8f /mod/mod-ci-github.cxx
parentf50c39d83c81cf3d5122e711677309c83904c5c7 (diff)
Pass nullfd for curl stdin
Diffstat (limited to 'mod/mod-ci-github.cxx')
-rw-r--r--mod/mod-ci-github.cxx4
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.
//