File: master.h

package info (click to toggle)
watchcatd 1.2.1-4
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 308 kB
  • sloc: ansic: 1,784; sh: 73; makefile: 59; perl: 46
file content (27 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
** $Id: master.h 1654 2006-05-29 18:18:02Z andre $
** watchcatd - Watchcat Daemon
** See copyright notice in distro's COPYRIGHT file
*/

#ifndef MASTER_H
#define MASTER_H

#define FROM_SLAVE_TO_MASTER_FD 3
#define SOCKET_LISTENER_FD      4

#define MSG_KILL 0
#define MSG_LOG  1

struct kill_msg {
    int fd;
    pid_t pid;
    int signal;
};

struct log_msg {
    int priority;
    int length;
};

#endif /* MASTER_H */