git: libc - Fix bug in rcmdsh()
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Jul 26 12:42:24 PDT 2017
commit 8175f6e09c5203a3246150bbd06b46a246662794
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Jul 26 12:41:20 2017 -0700
libc - Fix bug in rcmdsh()
* rcmdsh() (which really nothing should be using any more anyway) used
a generic wait(NULL) to wait for a child to exit, but this can wind
up waiting for the wrong pid in a multi-threaded or multi-fork environment.
* Solved by waiting on the specific pid instead.
Summary of changes:
lib/libc/net/rcmdsh.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8175f6e09c5203a3246150bbd06b46a246662794
--
DragonFly BSD source repository
More information about the Commits
mailing list