summaryrefslogtreecommitdiff
path: root/include/process.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-06-11 20:33:14 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-06-11 20:33:14 +0200
commit8fc9066ee62d17cdb76bc064c945da3bb0d2e2a3 (patch)
treebfde54b1611023e42a918bbd1911b874a6d0bff2 /include/process.h
parent9163f4673d919658c94f9de4ca32a2e9dacce2fd (diff)
downloadconntrack-tools-8fc9066ee62d17cdb76bc064c945da3bb0d2e2a3.tar.gz
conntrack-tools-8fc9066ee62d17cdb76bc064c945da3bb0d2e2a3.zip
conntrackd: add support to display statistics on existing child processes
This patch adds the ability to dump the list of existing child processes. In general, it would be hard to display one since child processes are generally forked for very specific tasks, like commit and flush operations, and they have very limited lifetime. However, this can be handy for debugging problems. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/process.h')
-rw-r--r--include/process.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/process.h b/include/process.h
index 9d29f22..41c7c10 100644
--- a/include/process.h
+++ b/include/process.h
@@ -5,6 +5,7 @@ enum process_type {
CTD_PROC_ANY, /* any type */
CTD_PROC_FLUSH, /* flush process */
CTD_PROC_COMMIT, /* commit process */
+ CTD_PROC_MAX
};
#define CTD_PROC_F_EXCL (1 << 0) /* only one process at a time */
@@ -19,5 +20,6 @@ struct child_process {
int fork_process_new(int type, int flags, void (*cb)(void *data), void *data);
int fork_process_delete(int pid);
+void fork_process_dump(int fd);
#endif