From 9148dac885c0325636c2d33715ba248371706d0d Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Fri, 09 Jul 2004 16:48:52 +0000 Subject: dudki: initial import into svn repository --- (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h new file mode 100644 index 0000000..314d8e2 --- a/dev/null +++ b/src/util.h @@ -0,0 +1,20 @@ +#ifndef __UTIL_H +#define __UTIL_H + +#include +using namespace std; + +class pid_file { + public: + string file_name; + bool unlink_pid; + + pid_file() + : unlink_pid(false) { } + ~pid_file() { unlink(); } + + void set(const string& f,bool u=true); + void unlink(); +}; + +#endif /* __UTIL_H */ -- cgit v0.9.0.2