NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/49017: vfork does not suspend all threads



The following reply was made to PR kern/49017; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/49017: vfork does not suspend all threads
Date: Wed, 5 Apr 2017 21:17:17 +0200

 On Wed, Apr 05, 2017 at 06:45:01PM +0000, Nico Williams wrote:
 >  There are several ways to use vfork() to spawn children in a high-performance
 >  way:
 >  
 >   - First, obviously, in posix_spawn().
 
 At leaset in NetBSD posix_spawn() is completely unrelated to vfork().
 Noone is suggesting to stop any thread in a process doing posix_spawn().
 
 Using vfork() in a program with multiple active threads is madness,
 posix_spawn() is the only sensible way.
 
 Martin
 


Home | Main Index | Thread Index | Old Index