From: наб Date: Wed, 13 Mar 2024 14:26:50 +0000 (+0100) Subject: proc_pid_io.5: Mention atomicity in atomicity note X-Git-Tag: man-pages-6.7~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4d342fdcd5274900ac5f1ecc2ff5acacec2bb5f;p=thirdparty%2Fman-pages.git proc_pid_io.5: Mention atomicity in atomicity note And drop "current implementation" (wording still literal from Documentation/filesystems/proc.rst). Of course this describes the current implementation. Signed-off-by: Ahelenia Ziemiańska Signed-off-by: Alejandro Colomar --- diff --git a/man5/proc_pid_io.5 b/man5/proc_pid_io.5 index 1948fff18..58fd9a5ab 100644 --- a/man5/proc_pid_io.5 +++ b/man5/proc_pid_io.5 @@ -84,11 +84,10 @@ will not be happening. .RE .IP .IR Note : -In the current implementation, things are a bit racy on 32-bit systems: -if process A reads process B's -.IR /proc/ pid /io -while process B is updating one of these 64-bit counters, -process A could see an intermediate result. +these counters are not atomic: +on systems where 64-bit integer operations may tear, +a counter could be updated simultaneously with a read, +yielding an incorrect intermediate value. .IP Permission to access this file is governed by .BR ptrace (2)