summaryrefslogtreecommitdiffstats
path: root/src/run.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-06-11 19:34:50 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-06-11 19:34:50 +0200
commit5e696e022d8383bc7abe6e6ba37c2664679fe81f (patch)
tree34ab3159dda9efbdf352236a60a1b1236eb17525 /src/run.c
parent0121fd74b805a6490f005c835b3994fa06487395 (diff)
conntrackd: allow to limit the number of simultaneous child processes
This patch allows to limit the number of simultaneous child processes. This is required by the next patch that replaces disposable handlers to commit and flush with permanent handlers. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/run.c')
-rw-r--r--src/run.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/run.c b/src/run.c
index 21ff715..a0aea4f 100644
--- a/src/run.c
+++ b/src/run.c
@@ -218,7 +218,8 @@ void local_handler(int fd, void *data)
/* fork a child process that performs the flush operation,
* meanwhile the parent process handles events. */
- if (fork_process_new(flush_done_cb, h) == 0) {
+ if (fork_process_new(CTD_PROC_FLUSH, CTD_PROC_F_EXCL,
+ flush_done_cb, h) == 0) {
nl_flush_conntrack_table(h);
exit(EXIT_SUCCESS);
}