private function _closeIdleAgents()
    {
        if ($this->_gpgconf) {
            // before 2.1.13 --homedir wasn't supported, use env variable
            $env = array('GNUPGHOME' => $this->_homedir);
            $cmd = $this->_gpgconf . ' --kill gpg-agent';

            if ($process = proc_open($cmd, array(), $pipes, null, $env)) {
                proc_close($process);
            }
        }
    }
private function _closeIdleAgents()
    {
        if ($this->_gpgconf) {
            // before 2.1.13 --homedir wasn't supported, use env variable
            $env = array('GNUPGHOME' => $this->_homedir);
            $cmd = $this->_gpgconf . ' --kill gpg-agent';

            if ($process = proc_open($cmd, array(), $pipes, null, $env)) {
                proc_close($process);
            }
        }
    }
private function _closeIdleAgents ( ) { if ( $ this -> _gpgconf ) { // before 2.1.13 --homedir wasn't supported, use env variable $ env = array ( 'GNUPGHOME' => $ this -> _homedir ) ; $ cmd = $ this -> _gpgconf . ' --kill gpg-agent' ; if ( $ process = proc_open ( $ cmd , array ( ) , $ pipes , null , $ env ) ) { proc_close ( $ process ) ; } } }
Forces automatically started gpg-agent process to cleanup and exit
within a minute.

This is needed in GnuPG 2.1 where agents are started
automatically by gpg process, not our code.

@return void
Forces automatically started gpg - agent process to cleanup and exit within a minute .