]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/fileutl.h
Do not read stderr from proxy autodetection scripts
[apt.git] / apt-pkg / contrib / fileutl.h
index 15665f8b5ea8703d033f0f874b3a456379f360ed..dddeb70f59c71283aefa52fd0e25a23c95abcd3e 100644 (file)
@@ -248,8 +248,11 @@ std::vector<std::string> Glob(std::string const &pattern, int flags=0);
  * \param Child a reference to the integer that stores the child pid
  *        Note that you must call ExecWait() or similar to cleanup
  * \param Mode is either FileFd::ReadOnly or FileFd::WriteOnly
+ * \param CaptureStderr True if we should capture stderr in addition to stdout.
+ *                      (default: True).
  * \return true on success, false on failure with _error set
  */
+bool Popen(const char* Args[], FileFd &Fd, pid_t &Child, FileFd::OpenMode Mode, bool CaptureStderr);
 bool Popen(const char* Args[], FileFd &Fd, pid_t &Child, FileFd::OpenMode Mode);