Module Name: src Committed By: kamil Date: Tue Jun 11 12:47:34 UTC 2019
Modified Files: src/lib/libc/gen: posix_spawn.3 Log Message: Correct outdated note that posix_spawn(3) is implemented with vfork(2) The original FreeBSD libc code uses vfork(2), it's not the case for NetBSD as there is a dedicated kernel syscall. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/lib/libc/gen/posix_spawn.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gen/posix_spawn.3 diff -u src/lib/libc/gen/posix_spawn.3:1.6 src/lib/libc/gen/posix_spawn.3:1.7 --- src/lib/libc/gen/posix_spawn.3:1.6 Sun Feb 2 16:59:06 2014 +++ src/lib/libc/gen/posix_spawn.3 Tue Jun 11 12:47:34 2019 @@ -1,4 +1,4 @@ -.\" $NetBSD: posix_spawn.3,v 1.6 2014/02/02 16:59:06 wiz Exp $ +.\" $NetBSD: posix_spawn.3,v 1.7 2019/06/11 12:47:34 kamil Exp $ .\" .\" Copyright (c) 2008 Ed Schouten <e...@freebsd.org> .\" All rights reserved. @@ -36,7 +36,7 @@ .\" .\" $FreeBSD: src/lib/libc/gen/posix_spawn.3,v 1.2.2.1.4.1 2010/06/14 02:09:06 kensmith Exp $ .\" -.Dd February 2, 2014 +.Dd June 11, 2019 .Dt POSIX_SPAWN 3 .Os .Sh NAME @@ -312,11 +312,9 @@ had been called to create a child proces .Fn execve had been called by the child process to execute the new process image. .Pp -The implementation uses vfork(), thus the fork handlers are not run when -.Fn posix_spawn -or -.Fn posix_spawnp -is called. +This implementation does not run +.Xr pthread_atfork 3 +callbacks. .Sh RETURN VALUES Upon successful completion, .Fn posix_spawn