From nobody Fri Jul 01 08:37:21 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 32470874906 for ; Fri, 1 Jul 2022 08:37:22 +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 4LZ7qP6tTjz54TL for ; Fri, 1 Jul 2022 08:37:21 +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 C93B2181B4 for ; Fri, 1 Jul 2022 08:37:21 +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 2618bLKx065705 for ; Fri, 1 Jul 2022 08:37:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2618bLAW065704 for bugs@FreeBSD.org; Fri, 1 Jul 2022 08:37:21 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 264971] tcsetpgrp(3) manpage should mention the relation with SIGTTOU Date: Fri, 01 Jul 2022 08:37:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bsdpr@phoe.frmug.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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=1656664642; 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; bh=dhoIJlbPvMiDgTcO3P/8nwfKHBTNjTP+e4uEaRsSB5M=; b=EllBpp6m4dbTH+2tX7Anax1qkmvEc9EFuO/4yt4lvF1S3WhA+EZvSFaehRcHZHNxknUBZa bJ7LgntXd7FEKgAMIk3sGd+RwOEwg1MRoDCWqbrNTpwFOPkMdL4f7W/e7iaLeqYjhdcIab Y8npXMNwC5ShxfvOtm+RzxSGR8qGrUFgl4OBJgKBDlp+TFtBKA8LVIkOsyxxKYgi0JV3TX GOflTF1El76o/bLdcc8kl2ygtLeII6hyC/V7rlgvH5ovPpiOWRRBYCRtkQuxs+NbgxD45o GCCcWJ5aJP107aEJoAh3hiB2uNHALwFxJm/78gY47i4YriyiiCtdXhUlukd95A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656664642; a=rsa-sha256; cv=none; b=tBDAr0PmbmjmNbPqq8s0PEIrO4vPpg8r0X4IbzsXBteNgXiR4VA/pwHHP0ChBnvYi2ce1w 06BP/LFsr3gH1PpTNcXbl6+y88/fBaon0DEqubd3w8HzM9hR+zPYNm/DGCpYbzVWAiM3yP A2MqzzM5B+vdX/r3AiwnbLXtxqZdiJacdU4fGJgNpgZJNcSbzFwZpsty8IjllbF3gndMV3 7knfwKzP1bNL/Pw4O93CMOnpZP2onBt6DQkE3O83znih0/KbWpDiewrVGqkSeM/6HUoPiC 61oeTCd6nbCtfDpx5Q7a3HIgg9c8DY1vYyXHiR9XVLg3LSuGYhqNrgkO2EnLMw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264971 Bug ID: 264971 Summary: tcsetpgrp(3) manpage should mention the relation with SIGTTOU Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Manual Pages Assignee: bugs@FreeBSD.org Reporter: bsdpr@phoe.frmug.org CC: doc@FreeBSD.org I recently had some difficulties when trying to use tcsetpgrp(3) from a pro= cess trying to bring itself as the foreground process group leader of its controlling terminal. The process got a SIGTTOU sent, that was unexpected as this signal is not mentioned at all in the tcsetpgrp(3) manpage. I eventual= ly found an enlightening mention of this signal and how to handle it in an unanticipated location, the manual of an old release of the SAS/C compiler. "If tcsetpgrp is called from a background process, the signal SIGTTOU is generated, unless the signal is ignored or blocked. If the signal is defaul= ted, this will cause the calling process to stop. If the signal is handled, tcsetpgrp will set errno to EINTR and fail. For this reason, you should ign= ore or block SIGTTOU if you call tcsetpgrp from a background process." See https://support.sas.com/documentation/onlinedoc/ccompiler/doc750/html/lr2/z= id-9675.htm I think an explanation of the role of SIGTTOU and its usage relative to tcsetpgrp(3) should be added to the manual page as it plays an important ro= le in the correct application of this library function. --=20 You are receiving this mail because: You are the assignee for the bug.=