summaryrefslogtreecommitdiffstats
path: root/lib/Utils/xfuncs.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-09 17:13:47 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-09 17:13:47 +0200
commit5fe652bb3422cab731deddae4c25c2f0d6fee885 (patch)
tree21ad665ac2cf4c8d065c76952d3bb7d75388aaa9 /lib/Utils/xfuncs.cpp
parent49203bd0e4280757f910ba61fc1683f55fe6bc9b (diff)
downloadabrt-5fe652bb3422cab731deddae4c25c2f0d6fee885.tar.gz
abrt-5fe652bb3422cab731deddae4c25c2f0d6fee885.tar.xz
abrt-5fe652bb3422cab731deddae4c25c2f0d6fee885.zip
eliminate CDebugDump::m_bUnlock, m_nLockfileFD can be used instead
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Utils/xfuncs.cpp')
-rw-r--r--lib/Utils/xfuncs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Utils/xfuncs.cpp b/lib/Utils/xfuncs.cpp
index 0119606..f447b8f 100644
--- a/lib/Utils/xfuncs.cpp
+++ b/lib/Utils/xfuncs.cpp
@@ -280,3 +280,9 @@ int open_or_warn(const char *pathname, int flags)
return open3_or_warn(pathname, flags, 0666);
}
#endif
+
+void xunlink(const char *pathname)
+{
+ if (unlink(pathname))
+ perror_msg_and_die("can't remove file '%s'", pathname);
+}