From 45dc465f075075f481be7c3dfac38bf041fc9c0e Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 8 Feb 2010 03:17:50 +0100 Subject: libdpkg-perl: Rename Dpkg::IPC::fork_and_exec() to Dpkg::IPC::spawn() --- scripts/Dpkg/Compression/Process.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/Dpkg/Compression') 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 and one parameter -C as accepted by B. +C as accepted by B. You must call C 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 and one parameter -C as accepted by B. +C as accepted by B. You must call C 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 } -- cgit v1.2.3