]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: initcall: use initcalls for a few initialization functions
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 15:31:20 +0000 (16:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 18:50:32 +0000 (19:50 +0100)
commitb6b3df3ed3476141f39a3d57b87f801c659e773c
treeea24fa9d201a9b79f65126146c238b4e6e42cfdf
parent2455cebe00cf9027ed79aa7ed2c94129646c9101
MEDIUM: initcall: use initcalls for a few initialization functions

signal_init(), init_log(), init_stream(), and init_task() all used to
only preset some values and lists. This needs to be done very early to
provide a reliable interface to all other users. The calls used to be
explicit in haproxy.c:init(). Now they're placed in initcalls at the
STG_PREPARE stage. The functions are not exported anymore.
include/proto/log.h
include/proto/signal.h
include/proto/stream.h
include/proto/task.h
src/haproxy.c
src/log.c
src/signal.c
src/stream.c
src/task.c