From nobody Tue Sep 27 21:13:03 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 4McXQm1XYSz4cxTb for ; Tue, 27 Sep 2022 21:13:04 +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 4McXQm0VdCz4Kkn for ; Tue, 27 Sep 2022 21:13:04 +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 4McXQl6gqYzFrD for ; Tue, 27 Sep 2022 21:13:03 +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 28RLD3BK085181 for ; Tue, 27 Sep 2022 21:13:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 28RLD3NU085180 for bugs@FreeBSD.org; Tue, 27 Sep 2022 21:13:03 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: Tue, 27 Sep 2022 21:13:03 +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: jilles@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: cc 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=1664313184; 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=LAgjug17Pdu2f11esYtL90lN8BIIG0p/YteoLrDhqKc=; b=ZDciGLTkllRsiW4vdH+v13YVcXh22YSDgfe5T3wrzQmFwTv25RebRxCQ7mKr56uFQHZAhn aWjzBGeDvmEBn9UfkhNTmhKRj8CdhGvqW8ZtrTBXxa9NPs1RxmjmpGJ2mbeOdn/sPVD6+g XEC91KcN8gmzseJpn58eSdEy/7yjFHtte+lYdhUio5Qbtn7ViYKMureC3R/tooqJ3s3FZK g8J0H8RRORMGOM/BdKzGv4sW1RNy1ZmOHlMHgsxNPrNC0iBScaPhgyKKdnPdkN0Kbddlck H8Shu4quU9RKj1JTahmpMZkF4KDZVy1iUYCu13BGxnX+D/M4/4EgEpni4Ksd3g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664313184; a=rsa-sha256; cv=none; b=aljGauJUr8WeJ3HbigHTzEqYBrZd/58rdrvjrWFo0kQQnwkD0nPCccpouuPFqxFTj6NbcR wVR0mNRCIyzZci8Crfig8RXa8TJ2zNaYKl8QYZUZ0sg3gnS2/QcTkc8eKaqFqiCCfqi8Fi 62QBt1eMwDT/2e5QajlZxmEuhCBVOMz+mtjMHGS9kHeBUoFkBzPPo2cYyO7sLdqDZ4gCgx 19709skOHcd2Dj7kDV5tfmcAb7JBQ01RqTZiB08KWrVS/aWn0Nh+h2UgPpGjl7gMXkZd37 mj638QgZHQR9Nk2gzh2cQwoZAjXm1gS/1tz7FWRBJOfy6xIpFJfc0xJdLzju+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266627 Jilles Tjoelker changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jilles@FreeBSD.org --- Comment #11 from Jilles Tjoelker --- A similar effect could be obtained without patching any code using a command like (trap '' TTOU; stty -f /dev/tty sane) Note that with both this example and the proposed -i option, both the tcsetattr() call and any writes are affected (i.e. error messages or -a out= put will be written regardless of the TOSTOP setting). I agree that patching the kernel for this is a bad idea. The O_NONBLOCK fla= g is intended to allow non-blocking reads and writes such as for ssh(1), not to interfere with the normal functioning of job control. --=20 You are receiving this mail because: You are the assignee for the bug.=