devfs - sync devfs after cloning a device
authorAlex Hornung <alex@alexhornung.com>
Fri, 14 Mar 2014 19:27:19 +0000 (19:27 +0000)
committerAlex Hornung <alex@alexhornung.com>
Sat, 15 Mar 2014 07:50:25 +0000 (07:50 +0000)
commit18baefa434b299cd5ce2117c55d9a98550f238af
tree439ccfccd5e5460b077dde8693f2f8da7ef44a92
parent6895167db7028d4b339801a69819addfbd28a708
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.
sys/vfs/devfs/devfs_vnops.c