From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 20888 invoked from network); 23 Dec 2020 14:20:28 -0000 Received: from ewsd.inri.net (107.191.116.128) by inbox.vuxu.org with ESMTPUTF8; 23 Dec 2020 14:20:28 -0000 Received: from mail-wm1-f54.google.com ([209.85.128.54]) by ewsd; Wed Dec 23 09:17:01 -0500 2020 Received: by mail-wm1-f54.google.com with SMTP id y23so6285590wmi.1 for <9front@9front.org>; Wed, 23 Dec 2020 06:16:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:to:cc:subject:date:mime-version :content-transfer-encoding; bh=eLRSUUopojPQGYne8Yi4zuJ27iIWKoynhKA3+M9a/oI=; b=UWcYNE9JT2WX4cfe8uQdvb8YD5kZCgOfdxAekrx6OErPSiMNlwBEIYXZmKlWt+dRZg zgpQAABqaQT8RDrsI1V6zuxrazBAEt6G9liriK6nx+Bo+VsOzx6k8+9sR2EWX3MO1JFR kYxGnCwMtkdqYKa0n6MqCvuU4t30J/UC5llrDKjI3TWraLbHEuyjDf87Csl7WuAV3FGM r7I6frYlN1A3E2yX2ZjWiw1LJM/kphxBNGqBGTpRQp0WiX+Xcl+7Q3wLP/UGLVnhTOgR ffChMzOSHMd9TQuVs4scwr5pfDsQ7k/MO1yVfKLTwt/De6cYJ5cv227qMrR9CA/knGOk tfAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:to:cc:subject:date:mime-version :content-transfer-encoding; bh=eLRSUUopojPQGYne8Yi4zuJ27iIWKoynhKA3+M9a/oI=; b=lfxFAYuEiQdV13cZbhBCt1r4O6lKidm746rx5GkV4jbAkPqUbXTY/kyjtBk5Xaz2lG EWIUiJVg8t5YWzgFy9XelybI6f8+OmfKO0v65fhYXOrV/xJ35WQljhhgjPH2VfaVzxOs sz1C5mLBNINlyiTWhp8fljC8MKSTKAKx5oqaH0lYVjNQGu9tecc/WT+hXKBR27GLt4NI P+I5htwuTAoovVxF8oFFSaKQSAMmuQiTRWrC/SUsLL6j1ASOyRl/CDd2ujZW+i1NQ8HW jCjiCII7vfkGUUb6HaPRvlyAUpDAy1Rg5u+Aigp8yNF8r1d5xDkqotMoV2O1/nLdKCsn krlg== X-Gm-Message-State: AOAM530M95J2jX6/S52ROuawuv7qh5Ay3ycgMpnYlFt65VtV8ZuK0LL5 Q5NxE5jvgzoADEZFbISEmoM= X-Google-Smtp-Source: ABdhPJzqLHWtSAA8+uJP54gWPQDTZMDBuFcXRP41RuKqoFEnwZq8+ci+DQrXWudEO9LE89fV8SMf7w== X-Received: by 2002:a7b:c088:: with SMTP id r8mr27280544wmh.45.1608733012418; Wed, 23 Dec 2020 06:16:52 -0800 (PST) Return-Path: Received: from cirno.home ([185.64.155.70]) by smtp.gmail.com with ESMTPSA id s1sm35907732wrv.97.2020.12.23.06.16.51 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Dec 2020 06:16:51 -0800 (PST) From: boehm.igor@gmail.com X-Google-Original-From: igor@gmail.com Message-ID: <2C3AA8EF0AAF83E381CBE51F21CD53D1@gmail.com> To: 9front@9front.org CC: boehm.igor@gmail.com Date: Wed, 23 Dec 2020 15:16:50 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: hosting self-signing generator Subject: [9front] getpid(2) patch Reply-To: 9front@9front.org Precedence: bulk Fix inconsistency between man page of getpid() with its implementation. On 9front getpid() doesn't fail to generate a pid. Therefore it also doesn't set errstr. Hence the text in the man page describing that could be removed unless I am overlooking something. If the text is left in, it suggests that one has to implement error handling code for a situation that can never arise, at least not on 9front. See '/sys/src/9/port/proc.c:1772: pidadd(long pid)' for details. Thanks cinap for clearing up my initial confusion. diff -r 568e6c7e12ac sys/man/2/getpid --- a/sys/man/2/getpid Wed Dec 23 02:32:13 2020 +0100 +++ b/sys/man/2/getpid Wed Dec 23 15:04:09 2020 +0100 @@ -26,8 +26,3 @@ .IR intro (2), .IR exec (2), .IR proc (3) -.SH DIAGNOSTICS -Returns 0 and -sets -.I errstr -if unsuccessful.