From patchwork Thu Feb 23 20:49:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos O'Donell X-Patchwork-Id: 65541 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CD085385842B for ; Thu, 23 Feb 2023 20:51:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CD085385842B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677185462; bh=/3DLWEtni4TSpjkNEQfZHFZJg2drKS88BVzjgkUZBso=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=YZe/AV6t4eaFX1fjIuLW1ETivM7Lck83+ukLYvCf55lSA8qplGkY11+mZt12A8Yzm iN7TBQVHvZrqKkXqaB15EEkoBA/pbir1KQ+jyeOsVjTPgH2eJDRzrk6ph1tXZ6Xx2R 6bohOVDAWjevYS79N+hPQkXJR5ANdaHYY1W+PZsY= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id A7FCB3858C00 for ; Thu, 23 Feb 2023 20:50:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A7FCB3858C00 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-75-frpBqrIHMyuO9y0RUaEd5g-1; Thu, 23 Feb 2023 15:50:39 -0500 X-MC-Unique: frpBqrIHMyuO9y0RUaEd5g-1 Received: by mail-il1-f198.google.com with SMTP id n15-20020a92dd0f000000b00316fc5e6756so1869262ilm.23 for ; Thu, 23 Feb 2023 12:50:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/3DLWEtni4TSpjkNEQfZHFZJg2drKS88BVzjgkUZBso=; b=kyh/v7CZL5t+kxgqyzC6gwh4kzdBLh+Yn1wQYwpjZTjMvE2qCMOiYsSTwVftz3zdL3 DDlN2F0cUsVPxguZ5eiSSMMWzRTJO2x1HWVRTsF8LiTSHCOxbMtuL4u50YCr19pYd7eX msKj1RpWppzoGQi9HNmQdWj3hPyWyoNHi5yICBTmJJXPi9lLkcjdOACvDmCPAStJjVck li/KU+m3J+QPtJpfR2iBsckVbOY8EX2/1BwWjgLho/YmANHDFR4DELSasuCL2rVnCfIi CcdnQSn4hqdrllyFgfEmzMrpWxfwupNXYledDab/hv215UbU+C8/69GazOt4P/uOC+1I Zj7A== X-Gm-Message-State: AO0yUKXk8FeNW6pHEiUS7PhHoK0Q36I/Nez3sD92ewPBFU5zkwVAUIxz DA2qZBKMaZTpsMxw1ih7Bo6macSYpLif20uEu/yZ6Xpw/pvaBxybH60yP0sUzhnTlstqsk9sQp6 5LwVhddfDCHHpPd5bZNLzMXCP2/6QBS0MUFrOn7XXoN1b/oEnWAj2HIYZMmrPh67IhHSXjp8cJb M= X-Received: by 2002:a05:6e02:1e06:b0:315:9a7e:fb07 with SMTP id g6-20020a056e021e0600b003159a7efb07mr13550719ila.20.1677185437900; Thu, 23 Feb 2023 12:50:37 -0800 (PST) X-Google-Smtp-Source: AK7set/OER8I04BmNPZ1e9aztbfsrpJgUVFSyqeYL+Vj4do4LhKf8E19XrHU11vwkmHC+zqDydcWxQ== X-Received: by 2002:a05:6e02:1e06:b0:315:9a7e:fb07 with SMTP id g6-20020a056e021e0600b003159a7efb07mr13550705ila.20.1677185437603; Thu, 23 Feb 2023 12:50:37 -0800 (PST) Received: from athas.localdomain ([198.48.244.52]) by smtp.gmail.com with ESMTPSA id m12-20020a02cdcc000000b0038a13e116a1sm4080846jap.61.2023.02.23.12.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 12:50:37 -0800 (PST) To: libc-alpha@sourceware.org Cc: Carlos O'Donell Subject: [PATCH] manual: Add note to process.texi about MT-process fork (Bug 30159) Date: Thu, 23 Feb 2023 15:49:59 -0500 Message-Id: <20230223204959.408243-1-carlos@redhat.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-type: text/plain; charset=UTF-8 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Carlos O'Donell via Libc-alpha From: Carlos O'Donell Reply-To: Carlos O'Donell Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" The forked child of an MT-process may only call AS-safe functions. --- manual/process.texi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manual/process.texi b/manual/process.texi index 9307379194..dfdf0923b4 100644 --- a/manual/process.texi +++ b/manual/process.texi @@ -316,6 +316,12 @@ The child doesn't inherit alarms set by the parent process. The set of pending signals (@pxref{Delivery of Signal}) for the child process is cleared. (The child process inherits its mask of blocked signals and signal actions from the parent process.) + +@item +In the case of a multi-threaded parent, the child process may only +safely call asynchronous-signal-safe functions until the process is +replaced with a call to an @code{exec} family function. + @end itemize @deftypefun pid_t _Fork (void)