git: DragonFly_RELEASE_4_8 libc - Fix bug in rcmdsh()

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Jul 30 13:16:30 PDT 2017


commit 94a8aa62f4346dcd2bf37a4be48628f2552cdd4d
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/94a8aa62f4346dcd2bf37a4be48628f2552cdd4d


-- 
DragonFly BSD source repository



More information about the Commits mailing list