> Well it seems I was not quite diligent enough before posting. > > if (atomic_read(&tty->count) > 1) { > > makes it work (I forgot the & before) > > but still, is this an expected problem? Yes. The -ac tty driver uses atomics for tty counts to deal with a race