Skip to content

Commit

Permalink
docs/CODING_STYLE: fix typo (CLONE_VORK -> VFORK)
Browse files Browse the repository at this point in the history
  • Loading branch information
YHNdnzj committed Feb 24, 2024
1 parent 857945c commit 3d3c427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/CODING_STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ SPDX-License-Identifier: LGPL-2.1-or-later
- A corollary of the above is: never use `clone()` where a `fork()` would do
too. Also consider using `posix_spawn()` which combines `clone()` +
`execve()` into one and has nice properties since it avoids becoming a CoW
trap by using `CLONE_VORK` and `CLONE_VM` together.
trap by using `CLONE_VFORK` and `CLONE_VM` together.

- While we avoid forking off threads on our own, writing thread-safe code is a
good idea where it might end up running inside of libsystemd.so or
Expand Down

0 comments on commit 3d3c427

Please sign in to comment.