Kaynağa Gözat

* scripts/Dpkg/IPC.pm (fork_and_exec): new nocheck option

Raphael Hertzog 18 yıl önce
ebeveyn
işleme
83961fd759
2 değiştirilmiş dosya ile 10 ekleme ve 1 silme
  1. 5 0
      ChangeLog
  2. 5 1
      scripts/Dpkg/IPC.pm

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-06-23  Raphael Hertzog  <hertzog@debian.org>
+
+	* scripts/Dpkg/IPC.pm (fork_and_exec): New nocheck option that is
+	forwarded to wait_child().
+
 2008-06-23  Timothy G Abbott  <tabbott@MIT.EDU>
 
 	* scripts/dpkg-divert.pl: Add new option --listpackage to

+ 5 - 1
scripts/Dpkg/IPC.pm

@@ -102,6 +102,10 @@ Scalar. If containing a true value, wait_child() will be called before
 returning. The return value will of fork_and_exec() will be a true value,
 but not the pid.
 
+=item nocheck
+
+Scalar. Option of the wait_child() call.
+
 =item chdir
 
 Scalar. The child process will chdir in the indicated directory before
@@ -267,7 +271,7 @@ sub fork_and_exec {
 	${$opts{"error_to_string"}} = readline($error_to_string_pipe);
     }
     if ($opts{"wait_child"}) {
-	wait_child($pid, cmdline => "@prog");
+	wait_child($pid, nocheck => $opts{"nocheck"}, cmdline => "@prog");
 	return 1;
     }