From: weasel Date: Thu, 30 Jun 2005 14:03:27 +0000 (+0000) Subject: Remove obsolete code parts X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=06dd5fad98605e3c79a30531f931e34bbd54a4c1;p=pgp-tools.git Remove obsolete code parts git-svn-id: svn://svn.debian.org/pgp-tools/trunk@96 b513b33f-fedd-0310-b452-c3deb5f4c849 --- diff --git a/caff/caff b/caff/caff index 53d76c3..4c8397e 100755 --- a/caff/caff +++ b/caff/caff @@ -934,59 +934,3 @@ for my $keyid (@keyids_ok) { }; }; - - - - -###############################################################3 -#### old fork gpg --edit -=cut - my ($stdin_read, $stdin_write); - my ($stdout_read, $stdout_write); - my ($stderr_read, $stderr_write); - my ($status_read, $status_write); - pipe $stdin_read, $stdin_write; - pipe $stdout_read, $stdout_write; - pipe $stderr_read, $stderr_write; - pipe $status_read, $status_write; - - $pid = fork(); - unless ($pid) { # child - close $stdin_write; - close $stdout_read; - close $stderr_read; - close $status_read; - - my @call; - push @call, $CONFIG{'gpg-delsig'}; - push @call, "--homedir=$tempdir"; - push @call, '--with-colons'; - push @call, '--fixed-list-mode'; - push @call, '--command-fd=0'; - push @call, "--status-fd=".fileno($status_write); - push @call, "--no-tty"; - push @call, "--edit"; - push @call, $keyid; - - close STDIN; - close STDOUT; - close STDERR; - open (STDIN, "<&".fileno($stdin_read)) or die ("Cannot reopen stdin: $!\n"); - open (STDOUT, ">&".fileno($stdout_write)) or die ("Cannot reopen stdout: $!\n"); - open (STDERR, ">&".fileno($stderr_write)) or die ("Cannot reopen stderr: $!\n"); - - fcntl $status_write, F_SETFD, 0; - - exec (@call); - exit; - }; - close $stdin_read; - close $stdout_write; - close $stderr_write; - close $status_write; - - $inputfd = $stdin_write; - $stdoutfd = $stdout_read; - $stderrfd = $stderr_read; - $statusfd = $status_read; -=cut