Hi! `libcons/vcons-close.c:37' says that ``The same virtual console should never be opened twice''. Some part of the code seem to take into account that it might be opened multiple times, though:
- `cons_vcons_open ()' does not set `vcons_entry->vcons' to `*r_vcons' itself, but leaves this to its callers (which are `cons_switch ()' and `console-client/console.c:cons_vcons_add ()'). - `cons_switch ()' locks `*r_vcons' either with a call to `cons_vcons_open ()', or (in `libcons/cons-switch.c:77') directly. The ``either ... or ...'' is what gives me the impression that it expects that it might be opened more than once. Hoewever, in any case it gets unlocked at `console-client/console.c:86' indirectly through a call to `cons_vcons_close ()'. Or are there other reasons for these behaviours? Cheers, GNU/Wolfgang PS: The comment at `console-client/console.c:62' ends in the middle of a sentence. _______________________________________________ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd