From nobody Mon Sep 26 21:24:11 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mbwk36LBxz4V6MQ for ; Mon, 26 Sep 2022 21:24:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mbwk35KBgz3pxH for ; Mon, 26 Sep 2022 21:24:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mbwk34N0Qztx3 for ; Mon, 26 Sep 2022 21:24:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 28QLOB8j027664 for ; Mon, 26 Sep 2022 21:24:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 28QLOBge027663 for bugs@FreeBSD.org; Mon, 26 Sep 2022 21:24:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 266627] stty -f should be non-blocking Date: Mon, 26 Sep 2022 21:24:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664227451; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EsXLofwdd5Cy/AI6KTLXfvbBN9JC6y2ytNe78M6rcxw=; b=xOtmB9uOCj4ynukGwmt+awokgGBXny/AMU34zIjVxeCnV5IZcA8qujqq4ASp2BwQRzZ5l2 MftP0IaRe/3ASbKIYWqaAA04ue45ghxW4lhvd3d2sms6BICNJ2ygpWwBev2Kg5CXsggbmy spLqRy1vPjQFgq29u9QowcVos1uDWMQBeXZxvA/1GQHGfLy0sDddxXHBPtmi8AsLIvUyAT SbzEkfLJsKGiQ1Hn2iraT40CmxWh6t9n7AYYrdNPW1EDs9vHIONtxW2txQ1+sMCDMBtUC1 pYIEhOqSS88M2BNU20Sib7Jx0tyv6LbX3cY8QNNBKp1n/8H/tG7guR9oHnyRDA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664227451; a=rsa-sha256; cv=none; b=AD60ii6cfrqNxnTMHtVWtmoydBz3oA+2WAm6g4xxi8cL1OgTzqlMFt12dRTcoROh+yzorf NxUbI/a6E6FTi+1HjLTsgrGUf7yB+tCzW5OpXQ1wdUKg+3q9h++w4ruYU+3bxwsOvRA9cM NbWPtW1PqGAmdfsmUBNNMdupV4D9jIgkdJrPJVmE5Hc9mJ4x6KpwpFEs37xfhjZatVy6QF 19aUr/LX71ict2XGxYLqHfynO6eEccmPMSNfRAJZvk3Nnpj2PPdx7UDy5phdsPJ2Cg/M+y FLmLHWY7gnRtxtBalx81opyf+kVwy0DJPY0/+jKi7elJVV2gwPx7C7L1TwEtcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266627 --- Comment #7 from Konstantin Belousov --- (In reply to Stefan E=C3=9Fer from comment #5) I found a Linux box to test, and so far the behavior seems to be identical to ours. As I said, the patch would break existing software most likely. [kostik@fc ~]$ stty -F /dev/tty sane& [1] 1309 [kostik@fc ~]$=20 [1]+ Stopped stty -F /dev/tty sane [kostik@fc ~]$ The hang you see is due to SIGTTOU sent before return from tty_wait_background(). This means that the patch is to make things work to your liking is even less likely to be reasonable. I attached the updated version that should work for you, but it is arguably not committable. --=20 You are receiving this mail because: You are the assignee for the bug.=