From 228dbf5a675eaaf78a98e8d6ff8296bcc7b86fad Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Mon, 11 Oct 2010 17:02:12 +0200 Subject: [PATCH] ExternalProgram: Correctly remember exit status --- zypp/ExternalProgram.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/zypp/ExternalProgram.cc b/zypp/ExternalProgram.cc index c0241e2..988542f 100644 --- a/zypp/ExternalProgram.cc +++ b/zypp/ExternalProgram.cc @@ -456,15 +456,12 @@ namespace zypp { if (ret != -1) { - status = checkStatus( status ); + _exitStatus = checkStatus( status ); } pid = -1; - return status; - } - else - { - return _exitStatus; } + + return _exitStatus; } @@ -483,7 +480,7 @@ namespace zypp { // if 'launch' is logged, completion should be logged, // even if successfull. DBG << "Pid " << pid << " successfully completed" << endl; - //_execError = _("Command successfully completed."); + _execError.clear(); // empty if running or successfully completed } } else if (WIFSIGNALED (status)) -- 2.7.4