X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/db1d1c32149177c0b6ca49e5107ab1f5fd364660..0dd19915f44df0048d594d527797c62ab6195cc6:/apt-private/private-utils.cc diff --git a/apt-private/private-utils.cc b/apt-private/private-utils.cc index 34af83c08..775bf7e79 100644 --- a/apt-private/private-utils.cc +++ b/apt-private/private-utils.cc @@ -9,7 +9,7 @@ #include // DisplayFileInPager - Display File with pager /*{{{*/ -void DisplayFileInPager(std::string const &filename) +bool DisplayFileInPager(std::string const &filename) { pid_t Process = ExecFork(); if (Process == 0) @@ -39,11 +39,11 @@ void DisplayFileInPager(std::string const &filename) } // Wait for the subprocess - ExecWait(Process, "pager", false); + return ExecWait(Process, "pager", false); } /*}}}*/ // EditFileInSensibleEditor - Edit File with editor /*{{{*/ -void EditFileInSensibleEditor(std::string const &filename) +bool EditFileInSensibleEditor(std::string const &filename) { pid_t Process = ExecFork(); if (Process == 0) @@ -71,6 +71,6 @@ void EditFileInSensibleEditor(std::string const &filename) } // Wait for the subprocess - ExecWait(Process, "editor", false); + return ExecWait(Process, "editor", false); } /*}}}*/