ctdb-common: Simplify process registration using linked list
authorAmitay Isaacs <amitay@gmail.com>
Wed, 9 May 2018 04:07:35 +0000 (14:07 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 5 Jun 2018 20:34:18 +0000 (22:34 +0200)
commit4b04c27377e835a7bccbf2175e94da730374de81
tree12f4936ce99200a18b7b47b945f1777759fc4996
parentf2e8ab3f02aab7e2550409762800befa4b55cb69
ctdb-common: Simplify process registration using linked list

The way run_proc abstraction is used in run_event, there can be maximum
of 2 processes active at any given time.  So the memory requirements
can be reduced by using a linked list.

New eventd will have multiple run_event instances but will be limited to
3 or 4.  Even then the total number of processes will be less than 10.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/run_proc.c