In ng_tty.c, function ngt_newhook(), there is the following code:

        if (sc->hook)
                return (EISCONN);

        NGTLOCK(sc);
        sc->hook = hook;
        NGTUNLOCK(sc);

I do not think this is proper - should not the test be within the lock?

Regards,

Martin

--
Martin Birgmeier
Vienna
Austria
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to