[svn] GpgEX - r18 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Tue Sep 11 16:53:37 CEST 2007
Author: marcus
Date: 2007-09-11 16:53:06 +0200 (Tue, 11 Sep 2007)
New Revision: 18
Modified:
trunk/src/ChangeLog
trunk/src/client.cc
Log:
2007-09-11 Marcus Brinkmann <marcus at g10code.de>
* client.cc (client_t::call_assuan): Send --nohup as argument to
command.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2007-09-11 14:28:55 UTC (rev 17)
+++ trunk/src/ChangeLog 2007-09-11 14:53:06 UTC (rev 18)
@@ -1,5 +1,8 @@
2007-09-11 Marcus Brinkmann <marcus at g10code.de>
+ * client.cc (client_t::call_assuan): Send --nohup as argument to
+ command.
+
* client.h (class client_t): New members decrypt, verify, encrypt,
and sign.
* client.cc: Add implementations for these.
Modified: trunk/src/client.cc
===================================================================
--- trunk/src/client.cc 2007-09-11 14:28:55 UTC (rev 17)
+++ trunk/src/client.cc 2007-09-11 14:53:06 UTC (rev 18)
@@ -87,8 +87,7 @@
try
{
- /* Set the input files. FIXME: Might need to set the output files
- as well. */
+ /* Set the input files. We don't specify the output files. */
for (unsigned int i = 0; i < filenames.size (); i++)
{
msg = "INPUT FILE=\"" + filenames[i] + "\" --continued";
@@ -103,17 +102,10 @@
/* Set the --nohup option, so that the operation continues and
completes in the background. */
- msg = "OPTION --nohup";
+ msg = ((string) cmd) + " --nohup";
(void) TRACE_LOG1 ("sending cmd: %s", msg.c_str ());
rc = assuan_transact (ctx, msg.c_str (),
NULL, NULL, NULL, NULL, NULL, NULL);
- if (rc)
- goto leave;
-
- msg = cmd;
- (void) TRACE_LOG1 ("sending cmd: %s", msg.c_str ());
- rc = assuan_transact (ctx, msg.c_str (),
- NULL, NULL, NULL, NULL, NULL, NULL);
}
catch (std::bad_alloc)
{
More information about the Gnupg-commits
mailing list