March 7, 2019
8:59 a.m.
On Wed, 06 Mar 2019 03:50:10 -0500, Jeffrey Walton said:
Yeah, the race seems to be the downside to ioctl and TIOEXCL.
It is too bad Linux does not honor O_EXCL for the device, or provide a similar open flag like SOCK_NONBLOCK was added to avoid the race in sockets. It would avoid a lot of problems.
-ENOPATCH :)