Source
13
13
** GNU General Public License for more details.
14
14
**
15
15
** You should have received a copy of the GNU General Public License
16
16
** along with this program; if not, write to the Free Software
17
17
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
18
**/
19
19
20
20
#ifndef ZABBIX_PID_H
21
21
#define ZABBIX_PID_H
22
22
23
+
#include "threads.h"
24
+
23
25
#ifdef _WINDOWS
24
26
# error "This module allowed only for Unix OS"
25
27
#endif
26
28
27
29
int create_pid_file(const char *pidfile);
28
30
int read_pid_file(const char *pidfile, pid_t *pid, char *error, size_t max_error_len);
29
31
void drop_pid_file(const char *pidfile);
30
32
31
33
#endif