svn commit: r297190 - head/sys/kern
Jean-Sébastien Pédron
jean-sebastien.pedron at dumbbell.fr
Thu Mar 24 09:32:56 UTC 2016
On 23/03/2016 18:45, Edward Tomasz Napierala wrote:
>> So maybe callouts are disabled in this situation. If there is a way to
>> detect that, then vt(4) can go back to a "synchronous mode" where it
>> refreshes the screen after each typed character, like it does when ddb
>> is active.
>
> Looks like that's the case: for some reason the callouts don't work.
> This trivial hack is a (mostly) working workaround:
>
> Index: svn/head/sys/kern/kern_cons.c
> ===================================================================
> --- svn/head/sys/kern/kern_cons.c (revision 297210)
> +++ svn/head/sys/kern/kern_cons.c (working copy)
> @@ -430,6 +430,7 @@ cngets(char *cp, size_t size, int visible)
> lp = cp;
> end = cp + size - 1;
> for (;;) {
> + pause("meh", 1);
Could you please explain how this works to me? Does calling pause() here
give a chance to interrupt handlers or other threads of running?
--
Jean-Sébastien Pédron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20160324/75170388/attachment.sig>
More information about the svn-src-all
mailing list