Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Correct outdated note that posix_spawn(3) is im...
details: https://anonhg.NetBSD.org/src/rev/9f08c12950c1
branches: trunk
changeset: 457088:9f08c12950c1
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Jun 11 12:47:34 2019 +0000
description:
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.
diffstat:
lib/libc/gen/posix_spawn.3 | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (33 lines):
diff -r c9c4709fc1b0 -r 9f08c12950c1 lib/libc/gen/posix_spawn.3
--- a/lib/libc/gen/posix_spawn.3 Tue Jun 11 11:57:14 2019 +0000
+++ b/lib/libc/gen/posix_spawn.3 Tue Jun 11 12:47:34 2019 +0000
@@ -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 <ed%FreeBSD.org@localhost>
.\" 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 @@
.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
Home |
Main Index |
Thread Index |
Old Index