]> git.ipfire.org Git - thirdparty/man-pages.git/commit
clone.2: Check for MAP_FAILED not NULL on mmap()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 16 Nov 2019 11:41:13 +0000 (12:41 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 17 Nov 2019 17:56:07 +0000 (18:56 +0100)
commit8eea66b8bb5832ec1a765a3bade4fd26030fe351
tree326dafd4beb7bbe0ed3c0b824457e74852be829b
parent225f5da8ace252e85dc561234470d72e72111d5c
clone.2: Check for MAP_FAILED not NULL on mmap()

If mmap() fails it will return MAP_FAILED which according to the manpage
is (void *)-1 not NULL.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/clone.2