]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/DiskIO/IpcIo/IpcIoIOStrategy.cc
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / DiskIO / IpcIo / IpcIoIOStrategy.cc
index 10a165e0b6cb9fda82e318a094465967d11ea3aa..30d0f0fc2b31ab32827ea2eedc2bf4df3f7d045a 100644 (file)
@@ -1,13 +1,17 @@
-
 /*
- * $Id$
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
- * DEBUG: section 47    Store Directory Routines
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
-#include "config.h"
+/* DEBUG: section 47    Store Directory Routines */
+
+#include "squid.h"
 #include "IpcIoFile.h"
 #include "IpcIoIOStrategy.h"
+#include "unlinkd.h"
 
 bool
 IpcIoIOStrategy::shedLoad()
@@ -28,12 +32,15 @@ IpcIoIOStrategy::newFile (char const *path)
     return new IpcIoFile (path);
 }
 
+bool
+IpcIoIOStrategy::unlinkdUseful() const
+{
+    return true;
+}
+
 void
 IpcIoIOStrategy::unlinkFile(char const *path)
 {
-#if USE_UNLINKD
     unlinkdUnlink(path);
-#else
-    ::unlink(path);
-#endif
 }
+