Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2016 10:32:49 +0100
From:      =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= <jean-sebastien.pedron@dumbbell.fr>
To:        Ian Lepore <ian@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r297190 - head/sys/kern
Message-ID:  <56F3B441.6030602@dumbbell.fr>
In-Reply-To: <20160323174537.GA1826@brick.home>
References:  <201603221346.u2MDk1XH029623@repo.freebsd.org> <1458662141.1091.16.camel@freebsd.org> <56F29654.8030806@dumbbell.fr> <20160323174537.GA1826@brick.home>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--EGL7OWBKNlKFAwc0ukdRTCA0lgv01aIS9
Content-Type: multipart/mixed; boundary="rLG6PPVaGfT7mAe4S0tQBUwHgtrBdvfCd"
From: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?=
 <jean-sebastien.pedron@dumbbell.fr>
To: Ian Lepore <ian@freebsd.org>, src-committers@freebsd.org,
 svn-src-all@freebsd.org, svn-src-head@freebsd.org
Message-ID: <56F3B441.6030602@dumbbell.fr>
Subject: Re: svn commit: r297190 - head/sys/kern
References: <201603221346.u2MDk1XH029623@repo.freebsd.org>
 <1458662141.1091.16.camel@freebsd.org> <56F29654.8030806@dumbbell.fr>
 <20160323174537.GA1826@brick.home>
In-Reply-To: <20160323174537.GA1826@brick.home>

--rLG6PPVaGfT7mAe4S0tQBUwHgtrBdvfCd
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

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.
>=20
> Looks like that's the case: for some reason the callouts don't work.
> This trivial hack is a (mostly) working workaround:
>=20
> Index: svn/head/sys/kern/kern_cons.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- 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 =3D cp;
>  	end =3D 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?

--=20
Jean-S=E9bastien P=E9dron


--rLG6PPVaGfT7mAe4S0tQBUwHgtrBdvfCd--

--EGL7OWBKNlKFAwc0ukdRTCA0lgv01aIS9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJW87RBXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NzA4N0ZEMUFFQUUwRTEyREJDNkE2RjAz
OUU5OTc2MUE1RkQ5NENDAAoJEDnpl2Gl/ZTMXEUQAJHPmYsvDwx3ty7gUT2lLsut
7CPy+m3DZM+uwnIl0RAA/ovJK7+p9a1U/Jul9CRLYXfWhdDD70ap3GcnmTYIH3SO
Ik4HhveBOc6X1FmIo2pbTk2E5/300fDIVu/848vlILF8SKD0nMl0yWZ1x3RA/Oju
q1uOR8tu8HYN2lTNT3rKdzS4pwcQzWhgGevAYy9nEjZhwwA2G2mGjH8HTYoNwtBO
4iVmSUuMc5XvWHa07zp7NSP9CH4GMEyzH3FDaB0VcPAxjbYhMfz2YaIFZPMgl1pi
t74jYBL+ELIvt6T/oyhHHtxVmRj3cKYi1my5Li3NiXoBCE6g3BL53mYN674VLjr2
uuquDXt5o0lhBF15TWtRDka9vJaQYsNzUW639N0aFc1siIKtQ/phFoA/iWI6ue/k
GdMnFDYBT7F0ZjbZqaIk7ejANwP4so/4NsUyIKzNDefVSZpePdoA559oP5xs+iRQ
txVrNUmH49dRJJz4qKIMP0iw/P5yUHRBsf7/hvl6CtIDH/Z7jz3/WfdwPEXKDmY7
kQosSGyzv3gDb1JaGBweRQs3ffsQ2mJ2yA7wftKw7zZ0Ggqmt5obcjn4wlG9RbdJ
QqJFj2cMvQiTo06pJw7nMjML7Cpo6zQjdM9W2trSruFiDh8w8NQ5aWYsvkWuzrIY
M3W1166d9yD8ie6A/28U
=pQXE
-----END PGP SIGNATURE-----

--EGL7OWBKNlKFAwc0ukdRTCA0lgv01aIS9--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56F3B441.6030602>