diff --git a/src/spawn/ErrorPipe.cxx b/src/spawn/ErrorPipe.cxx index 06b39afb4..735be63b3 100644 --- a/src/spawn/ErrorPipe.cxx +++ b/src/spawn/ErrorPipe.cxx @@ -21,7 +21,7 @@ WriteErrorPipe(FileDescriptor p, std::string_view prefix, }; [[maybe_unused]] - auto nbytes = writev(p.Get(), v.data(), v.size()); + auto nbytes = p.Write(v); } void