using std::endl;
+namespace zyppintern { void repoVariablesReset(); } // upon re-acquiring the lock...
+
///////////////////////////////////////////////////////////////////
namespace zypp
{ /////////////////////////////////////////////////////////////////
bool isProcessRunning( pid_t pid_r )
{
// it is another program, not me, see if it is still running
- Pathname procdir( "/proc"/str::numstring(pid_r) );
+ Pathname procdir( Pathname("/proc")/str::numstring(pid_r) );
PathInfo status( procdir );
MIL << "Checking " << status << endl;
ZYpp::ZYpp( const Impl_Ptr & impl_r )
: _pimpl( impl_r )
{
+ ::zyppintern::repoVariablesReset(); // upon re-acquiring the lock...
+ MIL << "ZYpp is on..." << endl;
}
ZYpp::~ZYpp()
{
_theGlobalLock.reset();
+ MIL << "ZYpp is off..." << endl;
}
///////////////////////////////////////////////////////////////////
{
MIL << "Waiting whether pid " << globalLock().lockerPid() << " ends within $LOCK_TIMEOUT=" << LOCK_TIMEOUT << " sec." << endl;
unsigned delay = 1;
- Pathname procdir( "/proc"/str::numstring(globalLock().lockerPid()) );
+ Pathname procdir( Pathname("/proc")/str::numstring(globalLock().lockerPid()) );
for ( long i = 0; i < LOCK_TIMEOUT; i += delay )
{
if ( PathInfo( procdir ).isDir() ) // wait for /proc/pid to disapear
{
// another proc locked faster. maybe it ends fast as well....
MIL << "Waiting whether pid " << globalLock().lockerPid() << " ends within " << (LOCK_TIMEOUT-i) << " sec." << endl;
- procdir = Pathname( "/proc"/str::numstring(globalLock().lockerPid()) );
+ procdir = Pathname( Pathname("/proc")/str::numstring(globalLock().lockerPid()) );
}
else
{