[Pgp-tools-commit] r96 - trunk/caff

Peter Palfrader weasel at costa.debian.org
Thu Jun 30 14:03:28 UTC 2005


Author: weasel
Date: 2005-06-30 14:03:27 +0000 (Thu, 30 Jun 2005)
New Revision: 96

Modified:
   trunk/caff/caff
Log:
Remove obsolete code parts

Modified: trunk/caff/caff
===================================================================
--- trunk/caff/caff	2005-06-29 14:54:13 UTC (rev 95)
+++ trunk/caff/caff	2005-06-30 14:03:27 UTC (rev 96)
@@ -934,59 +934,3 @@
 	};
 
 };
-
-
-
-
-###############################################################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





More information about the Pgp-tools-commit mailing list