git: DragonFly_RELEASE_4_6 kernel - Fix getpid() issue in vfork() when threaded
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Jul 28 18:27:12 PDT 2016
commit b4d214925c8f708d2225d8a54f8bb2fa49238618
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/b4d214925c8f708d2225d8a54f8bb2fa49238618
--
DragonFly BSD source repository
More information about the Commits
mailing list