git: kernel - Fix getpid() issue in vfork() when threaded
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Jul 28 09:42:58 PDT 2016
commit 2eca01a4442a6c5012507471a3f39c1662854cde
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Jul 28 09:39:57 2016 -0700
kernel - Fix getpid() issue in vfork() when threaded
* upmap->invfork was a 0 or 1, but in a threaded program it is possible
for multiple threads to be in vfork() at the same time. Change invfork
to a count.
* Fixes improper getpid() return when concurrent vfork()s are occuring in
a threaded program.
Summary of changes:
sys/kern/kern_exec.c | 2 +-
sys/kern/kern_exit.c | 2 +-
sys/kern/kern_fork.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2eca01a4442a6c5012507471a3f39c1662854cde
--
DragonFly BSD source repository
More information about the Commits
mailing list