git: devfs - sync devfs after cloning a device

Alex Hornung alexh at crater.dragonflybsd.org
Sat Mar 15 00:50:36 PDT 2014


commit 18baefa434b299cd5ce2117c55d9a98550f238af
Author: Alex Hornung <alex at alexhornung.com>
Date:   Fri Mar 14 19:27:19 2014 +0000

    devfs - sync devfs after cloning a device
    
     * Use case are devices such as tty_pty which create a ptm/foo node as
       the cloned one, but also create a slave node (in pts/foo).
    
     * Without this, it's possible that ptm/foo is created before pts/foo
       is, and the program may race and not see pts/foo yet.

Summary of changes:
 sys/vfs/devfs/devfs_vnops.c | 8 ++++++++
 1 file changed, 8 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/18baefa434b299cd5ce2117c55d9a98550f238af


-- 
DragonFly BSD source repository


More information about the Commits mailing list