diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-09 11:59:49 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-09 11:59:49 +0000 |
commit | f6cc4e96147ba98f746da13e02a70962e659a74e (patch) | |
tree | dc659965ab4112b41faca7bb8c0a5e234ac713a1 /urpm.pm | |
parent | b655a8a23e36a91eb4fc65f0ee4261026db36f4d (diff) | |
download | urpmi-f6cc4e96147ba98f746da13e02a70962e659a74e.tar urpmi-f6cc4e96147ba98f746da13e02a70962e659a74e.tar.gz urpmi-f6cc4e96147ba98f746da13e02a70962e659a74e.tar.bz2 urpmi-f6cc4e96147ba98f746da13e02a70962e659a74e.tar.xz urpmi-f6cc4e96147ba98f746da13e02a70962e659a74e.zip |
- urpmi was ignoring the password for an http proxy
- urpm.pm : check whether a fork(2) succeeded before continuing
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3097,7 +3097,9 @@ sub install { local (*CHILD_RETURNS, *ERROR_OUTPUT, $_); if ($options{fork}) { pipe(CHILD_RETURNS, ERROR_OUTPUT); - if ($pid = fork()) { + defined($pid = fork()) or die "Can't fork: $!\n" + if ($pid) { + # parent process close ERROR_OUTPUT; $urpm->{log}(N("using process %d for executing transaction")); @@ -3119,6 +3121,7 @@ sub install { return @l; } else { + # child process close CHILD_RETURNS; } } |