From 5e696e022d8383bc7abe6e6ba37c2664679fe81f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 11 Jun 2009 19:34:50 +0200 Subject: 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 --- src/run.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/run.c') 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); } -- cgit v1.2.3