diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-28 14:06:20 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-28 14:06:20 +0100 |
commit | b43d23f520f7fa15c96c52eb52a68926031e4067 (patch) | |
tree | 1593b54572f1e96599b961b2fe8f6d6c13087092 /lib/Utils/DebugDump.cpp | |
parent | ebd0025f033ecf8f21d42e6a2c80ac312ec8116f (diff) | |
download | abrt-b43d23f520f7fa15c96c52eb52a68926031e4067.tar.gz abrt-b43d23f520f7fa15c96c52eb52a68926031e4067.tar.xz abrt-b43d23f520f7fa15c96c52eb52a68926031e4067.zip |
Rewritten CCpp hook and removed dealock in DebugDumps lib (zprikryl)
Diffstat (limited to 'lib/Utils/DebugDump.cpp')
-rw-r--r-- | lib/Utils/DebugDump.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Utils/DebugDump.cpp b/lib/Utils/DebugDump.cpp index 89be923e..fcd3b728 100644 --- a/lib/Utils/DebugDump.cpp +++ b/lib/Utils/DebugDump.cpp @@ -108,11 +108,13 @@ void CDebugDump::Lock() pid_t nPID = getpid(); std::stringstream ss; ss << nPID; + std::cerr << "CDebugDump::Lock(): waiting..."; while (!GetAndSetLock(lockPath, ss.str())) { - std::cerr << "CDebugDump::Lock(): waiting..." << std::endl; - usleep(100); + std::cerr << "."; + usleep(5000); } + std::cerr << "done." << std::endl; } void CDebugDump::UnLock() |