From owner-svn-src-head@freebsd.org Thu Mar 24 13:42:29 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F33FADBFA9; Thu, 24 Mar 2016 13:42:29 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 352A713A6; Thu, 24 Mar 2016 13:42:29 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id p65so66300697wmp.0; Thu, 24 Mar 2016 06:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=mGSY9UetTYHWoVOkb2DV0FTj8rQHD/3qCJ84/2QgkPA=; b=oGF7nrOy8CqYZ4v/3MReMfugfH+KNsjYGRj6r2MZfEadzAo2IcZaiFJtX7hz88U/dL PPry2uUomioxBvLPkE0VjXoKWqV0mV+XBD+M79wKR3AD6QVCF/1F6CTClMKlFXFIPBta 0LDQReJphYMGEYy/lJxe68fnqv0J01jQtEUKns6qTyCxFbBKuaog7ppKAocI4K+aBPCO ky71O8BFHOH6qC528vL/D2zugJxpE97toOyrkw4149Nx1fWQdZ86ymEEW9YrQ6yE39wy YfAlL0pgw7PZJNNt0EN6TQZquGPmzRbVvcAs3s6pHw30XPOojveF44po9q3iTFmDq0qV 50/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=mGSY9UetTYHWoVOkb2DV0FTj8rQHD/3qCJ84/2QgkPA=; b=gpihYGWRkXT0xx4qWz6go2VU2ye7KEDInVao1mu92daEA7sTSZHShXVB/wG7KvUiyI 4NXnvxIM0JAi2966wv2M/+q4RclIbx11ae+KZl4Trt6DGJ2VS1RHBHlRFCspcqsjlIVE SfUtM9QvMCFA5jhzNyiM1PkRHpd4FOx4FkO2niP+oKpX97EBzRDfm3otkWH7U4Fqr0UN i/WNcpzev+6s4+KMGhFnBEgNNIi5ZLpMVnvi6965QQsEIJZ9xYsA2rfUQVjUOmSLcPwU fZkD2nWEpzK+YiEOx2MTmjjEmfIG8Axigsq/2lEBqSix7iUJJ7cvdKtJCl1Q+ivfYIf8 BdSQ== X-Gm-Message-State: AD7BkJLB6hCmNjpjBsPhF5K8YiLrVYKGB+UhZMmuUi2fjYp1EvKmYP+R6Wvpu8igFV94YQ== X-Received: by 10.28.10.149 with SMTP id 143mr31487094wmk.38.1458826946403; Thu, 24 Mar 2016 06:42:26 -0700 (PDT) Received: from brick.home (esq247.neoplus.adsl.tpnet.pl. [83.20.136.247]) by smtp.gmail.com with ESMTPSA id c144sm27056945wmd.12.2016.03.24.06.42.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Mar 2016 06:42:25 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Thu, 24 Mar 2016 14:42:22 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: =?iso-8859-1?Q?Jean-S=E9bastien_P=E9dron?= Cc: Ian Lepore , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r297190 - head/sys/kern Message-ID: <20160324134222.GA1442@brick.home> Mail-Followup-To: =?iso-8859-1?Q?Jean-S=E9bastien_P=E9dron?= , Ian Lepore , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201603221346.u2MDk1XH029623@repo.freebsd.org> <1458662141.1091.16.camel@freebsd.org> <56F29654.8030806@dumbbell.fr> <20160323174537.GA1826@brick.home> <56F3B441.6030602@dumbbell.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56F3B441.6030602@dumbbell.fr> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2016 13:42:29 -0000 On 0324T1032, Jean-Sébastien Pédron wrote: > 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? It looks like it allows the callout to run. I've did an experiment and added a simple callout that printed something each second; during the root mount prompt it doesn't get run unless you type '.', which calls pause(9). And, for the record, https://reviews.freebsd.org/D5724 doesn't fix the problem.