summaryrefslogtreecommitdiffhomepage
path: root/tools/setup-unit
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2022-11-19 23:58:51 +0000
committerAndrew Clayton <a.clayton@nginx.com>2023-02-17 21:24:18 +0000
commit3351bb4ff5cd2ef4d8f7cfb87451f021bcccb37e (patch)
tree6ae777d58d3b4a74b1568dff7445fee81e1369ab /tools/setup-unit
parent1388d311c6ead756e75cf3b7c616d054e57fe220 (diff)
downloadunit-3351bb4ff5cd2ef4d8f7cfb87451f021bcccb37e.tar.gz
unit-3351bb4ff5cd2ef4d8f7cfb87451f021bcccb37e.tar.bz2
Isolation: Remove the syscall(SYS_getpid) wrapper.
When using SYS_clone we used the getpid kernel system call directly via syscall(SYS_getpid) to avoid issues with cached pids. However since we are now only using fork(2) (+ unshare(2) for namespaces) we no longer need to call the kernel getpid directly as the fork(2) will ensure the cached pid is invalidated. Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions