From a6123af191c048e7cc96e73b00e517347e82964d Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Mon, 26 Feb 2018 11:21:51 +0100 Subject: [PATCH] CODING_STYLE: add section about _exit() Signed-off-by: Christian Brauner --- CODING_STYLE.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CODING_STYLE.md b/CODING_STYLE.md index 64974fa84..a3bf41a4a 100644 --- a/CODING_STYLE.md +++ b/CODING_STYLE.md @@ -512,3 +512,8 @@ rules to use them: Signed-off-by: Christian Brauner ``` +#### Use `_exit()` To Terminate `fork()`ed Child Processes + +- When `fork()`ing off a child process use `_exit()` to terminate it instead of + `exit()`. The `exit()` function is not thread-safe and thus not suited for + the shared library which must ensure that it is thread-safe. -- 2.47.2