Prevent a lock order issue by shuffling code around. Instead of allocating
authorclaudio <claudio@openbsd.org>
Thu, 4 Feb 2021 07:54:51 +0000 (07:54 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 4 Feb 2021 07:54:51 +0000 (07:54 +0000)
commit155e81c2f0db04868635e1dc16602d25f1a92510
tree7f6323bf7b2275e8200942e303f2a1d3612033d1
parent3f1fd915736d3228ca41fb84f25f6da6510e4683
Prevent a lock order issue by shuffling code around. Instead of allocating
the file descriptors early do it late. This way the fdplock is not held
during the VFS operations.
OK mvs@
sys/kern/tty_pty.c