The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/2188

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Christian Brauner <[email protected]>
From 4ad78f87c7c524fc64dc16ed67346284e0db20e1 Mon Sep 17 00:00:00 2001
From: Christian Brauner <[email protected]>
Date: Mon, 26 Feb 2018 11:21:51 +0100
Subject: [PATCH] CODING_STYLE: add section about _exit()

Signed-off-by: Christian Brauner <[email protected]>
---
 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 <[email protected]>
 
   ```
+#### 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.
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to