summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Compression
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2010-02-08 03:17:50 +0100
committerGuillem Jover <guillem@debian.org>2010-02-19 06:48:26 +0100
commit45dc465f075075f481be7c3dfac38bf041fc9c0e (patch)
tree9a2411f1501b098cb889396de5a2e018089a9a70 /scripts/Dpkg/Compression
parentbf4c40bc0cebcf937854aa259c6729da9c975768 (diff)
downloaddpkg-45dc465f075075f481be7c3dfac38bf041fc9c0e.tar.gz
libdpkg-perl: Rename Dpkg::IPC::fork_and_exec() to Dpkg::IPC::spawn()
Diffstat (limited to 'scripts/Dpkg/Compression')
-rw-r--r--scripts/Dpkg/Compression/Process.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/Dpkg/Compression/Process.pm b/scripts/Dpkg/Compression/Process.pm
index 3018a1526..b7cbc0318 100644
--- a/scripts/Dpkg/Compression/Process.pm
+++ b/scripts/Dpkg/Compression/Process.pm
@@ -133,7 +133,7 @@ sub _sanity_check {
Starts a compressor program. You must indicate where it will read its
uncompressed data from and where it will write its compressed data to.
This is accomplished by passing one parameter C<to_*> and one parameter
-C<from_*> as accepted by B<Dpkg::IPC::fork_and_exec>.
+C<from_*> as accepted by B<Dpkg::IPC::spawn>.
You must call C<wait_end_process> after having called this method to
properly close the sub-process (and verify that it exited without error).
@@ -146,7 +146,7 @@ sub compress {
my @prog = $self->get_compress_cmdline();
$opts{"exec"} = \@prog;
$self->{"cmdline"} = "@prog";
- $self->{"pid"} = fork_and_exec(%opts);
+ $self->{"pid"} = spawn(%opts);
delete $self->{"pid"} if $opts{"to_string"}; # wait_child already done
}
@@ -155,7 +155,7 @@ sub compress {
Starts a decompressor program. You must indicate where it will read its
compressed data from and where it will write its uncompressed data to.
This is accomplished by passing one parameter C<to_*> and one parameter
-C<from_*> as accepted by B<Dpkg::IPC::fork_and_exec>.
+C<from_*> as accepted by B<Dpkg::IPC::spawn>.
You must call C<wait_end_process> after having called this method to
properly close the sub-process (and verify that it exited without error).
@@ -168,7 +168,7 @@ sub uncompress {
my @prog = $self->get_uncompress_cmdline();
$opts{"exec"} = \@prog;
$self->{"cmdline"} = "@prog";
- $self->{"pid"} = fork_and_exec(%opts);
+ $self->{"pid"} = spawn(%opts);
delete $self->{"pid"} if $opts{"to_string"}; # wait_child already done
}