[csw-devel] SF.net SVN: opencsw:[478] catalog_signatures/bin/signing_daemon

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Jul 21 05:27:19 CEST 2011


Revision: 478
          http://opencsw.svn.sourceforge.net/opencsw/?rev=478&view=rev
Author:   bdwalton
Date:     2011-07-21 03:27:19 +0000 (Thu, 21 Jul 2011)

Log Message:
-----------
Do not run screen session directly under gpg-agent

We must run gpg-agent as a stand-alone daemon instead of having it
exec screen on our behalf.  Doing otherwise sees it exit when the
screen session is detached.  Now, we run it and eval the output and
then exec screen ourselves.

Signed-off-by: Ben Walton <bwalton at opencsw.org>

Modified Paths:
--------------
    catalog_signatures/bin/signing_daemon

Modified: catalog_signatures/bin/signing_daemon
===================================================================
--- catalog_signatures/bin/signing_daemon	2011-07-21 03:26:59 UTC (rev 477)
+++ catalog_signatures/bin/signing_daemon	2011-07-21 03:27:19 UTC (rev 478)
@@ -11,4 +11,6 @@
 
 rm -f ${APP_GPG_ENV}
 
-gpg-agent --log-file "${APP_TMP}/gpg-agent.log" --daemon --homedir "${APP_GPG}" --write-env-file "${APP_GPG_ENV}" screen -c "${APP_ETC}/screenrc" -p 0
+eval $(gpg-agent --log-file "${APP_TMP}/gpg-agent.log" --daemon --homedir "${APP_GPG}" --write-env-file "${APP_GPG_ENV}")
+
+exec screen -c "${APP_ETC}/screenrc" -p 0


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list