]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: unify common code for preparing for forking off unit processes
authorLennart Poettering <lennart@poettering.net>
Fri, 17 Nov 2017 15:43:08 +0000 (16:43 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Nov 2017 10:54:08 +0000 (11:54 +0100)
commit3c7416b6cae1006388755598415e1139727b926a
treedfe4bf644447a413011162c0d918ccd5bb4a1eda
parent6925a0de4eaf181c08d7380249461abe5c42fe3f
core: unify common code for preparing for forking off unit processes

This introduces a new function unit_prepare_exec() that encapsulates a
number of calls we do in preparation for spawning off some processes in
all our unit types that do so.

This allows us to neatly unify a bit of code between unit types and
shorten our code.
src/core/mount.c
src/core/mount.h
src/core/service.c
src/core/service.h
src/core/socket.c
src/core/socket.h
src/core/swap.c
src/core/swap.h
src/core/unit.c
src/core/unit.h