diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-06-11 20:33:14 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-06-11 20:33:14 +0200 |
commit | 8fc9066ee62d17cdb76bc064c945da3bb0d2e2a3 (patch) | |
tree | bfde54b1611023e42a918bbd1911b874a6d0bff2 /src/main.c | |
parent | 9163f4673d919658c94f9de4ca32a2e9dacce2fd (diff) | |
download | conntrack-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 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -214,6 +214,10 @@ int main(int argc, char *argv[]) strlen(argv[i+1])) == 0) { action = STATS_QUEUE; i++; + } else if (strncmp(argv[i+1], "process", + strlen(argv[i+1])) == 0) { + action = STATS_PROCESS; + i++; } else { fprintf(stderr, "ERROR: unknown " "parameter `%s' for " |