diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-02-27 10:01:58 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-06-05 09:12:46 +0200 |
commit | 285321d5f02d50fdf6e4f51978cf713ad7b05ef5 (patch) | |
tree | 5ed7e63c47bb98af92c4af20a8702284e792f104 /mod/mod-ci-github.cxx | |
parent | 6c1821bc4970f6bc68f11a44956460032a52fc5d (diff) |
Pass nullfd for curl stdin
Diffstat (limited to 'mod/mod-ci-github.cxx')
-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. // |