]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-utils.cc
Ignore SIGINT and SIGQUIT for Pre-Install hooks
[apt.git] / apt-private / private-utils.cc
index 34af83c0858afca0008b2091a453ab980aa105c9..775bf7e799331e3d287f476474531793c26b5539 100644 (file)
@@ -9,7 +9,7 @@
 #include <unistd.h>
 
 // DisplayFileInPager - Display File with pager                                /*{{{*/
 #include <unistd.h>
 
 // DisplayFileInPager - Display File with pager                                /*{{{*/
-void DisplayFileInPager(std::string const &filename)
+bool DisplayFileInPager(std::string const &filename)
 {
    pid_t Process = ExecFork();
    if (Process == 0)
 {
    pid_t Process = ExecFork();
    if (Process == 0)
@@ -39,11 +39,11 @@ void DisplayFileInPager(std::string const &filename)
    }
 
    // Wait for the subprocess
    }
 
    // Wait for the subprocess
-   ExecWait(Process, "pager", false);
+   return ExecWait(Process, "pager", false);
 }
                                                                        /*}}}*/
 // EditFileInSensibleEditor - Edit File with editor                    /*{{{*/
 }
                                                                        /*}}}*/
 // EditFileInSensibleEditor - Edit File with editor                    /*{{{*/
-void EditFileInSensibleEditor(std::string const &filename)
+bool EditFileInSensibleEditor(std::string const &filename)
 {
    pid_t Process = ExecFork();
    if (Process == 0)
 {
    pid_t Process = ExecFork();
    if (Process == 0)
@@ -71,6 +71,6 @@ void EditFileInSensibleEditor(std::string const &filename)
    }
 
    // Wait for the subprocess
    }
 
    // Wait for the subprocess
-   ExecWait(Process, "editor", false);
+   return ExecWait(Process, "editor", false);
 }
                                                                        /*}}}*/
 }
                                                                        /*}}}*/