From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1B2C5138359 for ; Thu, 23 Jul 2020 04:47:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EFA9AE0883; Thu, 23 Jul 2020 04:47:39 +0000 (UTC) Received: from mail.suugaku.co.uk (unknown [2.125.59.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6593EE086D for ; Thu, 23 Jul 2020 04:47:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=suugaku.co.uk; s=mail; t=1595479816; bh=TvK9gUj6AU1aIxrdPsGOXVlgZIowP1E7zJu+cGZom5A=; h=Date:From:To:Subject:References:In-Reply-To; b=EU3uOUonERvCwqrjwLGjqvpAeRc68UmxOwaFOaQQemgvI2FKM2xzVgR1ewykFkCwC voeFjLIoqhydCSS3G/unmp3tH2qkBrHAqIbLxw2D2jhzEZmvEz1PVn3iMBwsX3Rffv WKGkAavN0mRYQarnERyICg92SNLi43V6JY1OhYJk= Date: Thu, 23 Jul 2020 05:46:32 +0100 From: Ashley Dixon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Strange output when restarting network. Long term issue. Message-ID: <20200723044632.6lnlp4whk4xoul5u@ad-gentoo-main> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <0efa1b11-c12c-3554-1f64-18a16f8492f2@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="y6gnknlfo47363kc" Content-Disposition: inline In-Reply-To: <0efa1b11-c12c-3554-1f64-18a16f8492f2@gmail.com> X-PGP-Key: fp="2A9A DA96 8A7B A30E F290 4117 D18A B0D2 BF25 A8AA"; id="0xBF25A8AA"; get=; get= X-Operating-System: Linux ad-gentoo-main 5.4.48-gentoo X-Editor: vim 8.2 User-Agent: NeoMutt/20180716 X-Archives-Salt: abc0dbad-902b-46b9-ae93-cc344be74d12 X-Archives-Hash: 2451d412fd04c48703a6a3128783a623 --y6gnknlfo47363kc Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 22, 2020 at 09:13:22PM -0500, Dale wrote: > See how it receives the address from the router and then gives a prompt > again, then it mounts network file systems where I should type in a > command but that isn't me..=A0 To get a prompt again, I have to hit the > return key.=A0 Why does it give me a prompt when it isn't done yet?=A0 > Shouldn't it finish completely before returning to a prompt?=A0 This is in > a Konsole, within KDE.=A0 That said, I'm pretty sure it does this on a > console, ctrl alt F*, screen as well.=A0 I can confirm I get this also, using st (suckless/simple terminal). I have = a VPN script in my net.eno1 script, so the output might differ slightly from y= ours, although the strange behaviour seems the same. [super] root@ad-gentoo-main / # etc/init.d/net.eno1 restart * Stopping openvpn ... [= ok ] * Unmounting network filesystems ... [= ok ] * Bringing down interface eno1 * Stopping dhcpcd on eno1 ... sending signal TERM to pid 13839 waiting for pid 13839 to exit [= ok ] * Bringing up interface eno1 * dhcp ... * Running dhcpcd ... DUID 00:04:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:d8:cb:8a:c6:64:cd eno1: IAID 8a:c6:64:cd eno1: adding address fe80::fd5:dd1a:7c1c:f59c eno1: rebinding lease of 192.168.0.3 eno1: carrier lost eno1: deleting address fe80::fd5:dd1a:7c1c:f59c eno1: carrier acquired eno1: IAID 8a:c6:64:cd eno1: adding address fe80::fd5:dd1a:7c1c:f59c eno1: soliciting an IPv6 router eno1: rebinding lease of 192.168.0.3 eno1: Router Advertisement from fe80::c23e:fff:fe2a:8b8c eno1: adding address fda8:3e71:2eb6:0:3c02:829f:d71c:a8b9/64 eno1: adding address 2a02:c7d:25f3:2800:b8e1:f66c:e550:c1b3/64 eno1: adding route to fda8:3e71:2eb6::/64 eno1: adding route to 2a02:c7d:25f3:2800::/64 eno1: requesting DHCPv6 information eno1: adding default route via fe80::c23e:fff:fe2a:8b8c forked to background, child pid 14536 [= ok ] * received address [= ok ] [super] root@ad-gentoo-main / # * Starting openvpn ... [= ok ] * WARNING: openvpn has started, but is inactive * Mounting network filesystems ... [= ok ] [super] root@ad-gentoo-main / # I suspect that this is just a silly bug in which a prompt is disp= layed prematurely, and since the shell has already dispatched the $PS1, it = waits until is received before showing it again, as it thinks you're in= the process of typing a command. As the "Starting openvpn ..." text is printe= d to stdout, when you press enter, it assumes an empty command has been entered= and does nothing but display another prompt. As a simple demonstration, see what happens when I type a command `echo H= ello` before pressing enter: [super] root@ad-gentoo-main / # etc/init.d/net.eno1 restart <... TRIM OUTPUT ...> [super] root@ad-gentoo-main / # * Starting openvpn ... [= ok ] * WARNING: openvpn has started, but is inactive * Mounting network filesystems ... [= ok ] echo Hello Hello [super] root@ad-gentoo-main / # --=20 Ashley Dixon suugaku.co.uk 2A9A 4117 DA96 D18A 8A7B B0D2 A30E BF25 F290 A8AA --y6gnknlfo47363kc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEKpralop7ow7ykEEX0Yqw0r8lqKoFAl8ZFiYACgkQ0Yqw0r8l qKqahg/+LXgTMcxu+qJn3L79XfB9BbMMlNR6fJoDH2JEsngVauc/hhn35lQGFUWw W/a3OmpPG4G912Pun6Nx6+cvDlxiNyPENzLCZgDy0cgAo5nH3ppKVGylCm+vG0dn AKiw5XF04la5FaTmAEiG1LFPbNcHDznlj8J4L6qzHIIYu2EZvdSKFOAue/BOoLzc dAQJB/KrT4xazxjLzI9U3A42+8a0nhm6Vm+t1PGoCzNNl0ZsUqiPINZxiEev5Lkb h8nu7M03yd4p9rmLCCU3OUnz9xd8/014UcsPPLUa41XyLqr+J0tFVCVi+mf7gLqQ t8dn9koJFSYDfvCKwNzdlohgmX8keWDVkOf0OZwwTViMNvVlIr5oZnmBeTkciQ72 /VBT+KrBZYu+/etC51ixNddLZIVNJq39M8i16a018rRrk7x+n/RFV+WDVzt3+P/d vVtEMU9ap7PWigsummohlHkekXJtUfbLo1Uxd7fD6rcsGc9iEBs6oTPsXD23jB6s rxLHcrX/khEdrm6lBQsyTBJRxQDll43rupZrzfihIk4MuZwao9YGQbbS3TV5JS3G z19af/losLj9GIRrbTQuoKd8hAZEWiB3SPsAWyoAjBS2515xk9PJag8ciOxJO9qm yqXqhVc9KNJM8lw9wkSBzvjczCvtT/rejYov8Scdq7z97vJY0Og= =JVsq -----END PGP SIGNATURE----- --y6gnknlfo47363kc--