|
|
|
@ -157,7 +157,7 @@ Base::run( const char *cmd, const char *passphrase, bool onlyReadFromPGP )
|
|
|
|
|
//kdDebug(5100) << "Polling pin[1]..." << endl;
|
|
|
|
|
pollstatus = poll(&pollin, 1, 5);
|
|
|
|
|
if (pollstatus == 1) {
|
|
|
|
|
//kdDebug(5100) << "tqStatus for polling pin[1]: " << pollin.revents << endl;
|
|
|
|
|
//kdDebug(5100) << "Status for polling pin[1]: " << pollin.revents << endl;
|
|
|
|
|
if (pollin.revents & POLLERR) {
|
|
|
|
|
kdDebug(5100) << "PGP seems to have hung up" << endl;
|
|
|
|
|
break;
|
|
|
|
@ -189,7 +189,7 @@ Base::run( const char *cmd, const char *passphrase, bool onlyReadFromPGP )
|
|
|
|
|
//kdDebug(5100) << "Polling pout[0]..." << endl;
|
|
|
|
|
pollstatus = poll(&pollout, 1, 0);
|
|
|
|
|
if (pollstatus == 1) {
|
|
|
|
|
//kdDebug(5100) << "tqStatus for polling pout[0]: " << pollout.revents << endl;
|
|
|
|
|
//kdDebug(5100) << "Status for polling pout[0]: " << pollout.revents << endl;
|
|
|
|
|
if (pollout.revents & POLLIN) {
|
|
|
|
|
//kdDebug(5100) << "Trying to read " << 1024 << " bytes from pout[0]" << endl;
|
|
|
|
|
if ((len = read(pout[0],str,1024))>0) {
|
|
|
|
@ -214,7 +214,7 @@ Base::run( const char *cmd, const char *passphrase, bool onlyReadFromPGP )
|
|
|
|
|
//kdDebug(5100) << "Polling perr[0]..." << endl;
|
|
|
|
|
pollstatus = poll(&pollerr, 1, 0);
|
|
|
|
|
if (pollstatus == 1) {
|
|
|
|
|
//kdDebug(5100) << "tqStatus for polling perr[0]: " << pollerr.revents << endl;
|
|
|
|
|
//kdDebug(5100) << "Status for polling perr[0]: " << pollerr.revents << endl;
|
|
|
|
|
if (pollerr.revents & POLLIN) {
|
|
|
|
|
//kdDebug(5100) << "Trying to read " << 1024 << " bytes from perr[0]" << endl;
|
|
|
|
|
if ((len = read(perr[0],str,1024))>0) {
|
|
|
|
@ -260,7 +260,7 @@ Base::run( const char *cmd, const char *passphrase, bool onlyReadFromPGP )
|
|
|
|
|
//kdDebug(5100) << "Polling pout[0]..." << endl;
|
|
|
|
|
pollstatus = poll(&pollout, 1, 0);
|
|
|
|
|
if (pollstatus == 1) {
|
|
|
|
|
//kdDebug(5100) << "tqStatus for polling pout[0]: " << pollout.revents << endl;
|
|
|
|
|
//kdDebug(5100) << "Status for polling pout[0]: " << pollout.revents << endl;
|
|
|
|
|
if (pollout.revents & POLLIN) {
|
|
|
|
|
//kdDebug(5100) << "Trying to read " << 1024 << " bytes from pout[0]" << endl;
|
|
|
|
|
if ((len = read(pout[0],str,1024))>0) {
|
|
|
|
@ -304,7 +304,7 @@ Base::run( const char *cmd, const char *passphrase, bool onlyReadFromPGP )
|
|
|
|
|
//kdDebug(5100) << "Polling perr[0]..." << endl;
|
|
|
|
|
pollstatus = poll(&pollerr, 1, 0);
|
|
|
|
|
if (pollstatus == 1) {
|
|
|
|
|
//kdDebug(5100) << "tqStatus for polling perr[0]: " << pollerr.revents << endl;
|
|
|
|
|
//kdDebug(5100) << "Status for polling perr[0]: " << pollerr.revents << endl;
|
|
|
|
|
if (pollerr.revents & POLLIN) {
|
|
|
|
|
//kdDebug(5100) << "Trying to read " << 1024 << " bytes from perr[0]" << endl;
|
|
|
|
|
if ((len = read(perr[0],str,1024))>0) {
|
|
|
|
|