Received: by mail.netbsd.org (Postfix, from userid 605) id 2966384E95; Sun, 19 Apr 2020 01:06:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A170B84E8E for ; Sun, 19 Apr 2020 01:06:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id uyP1DB87WYpm for ; Sun, 19 Apr 2020 01:06:16 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 33F2184D28 for ; Sun, 19 Apr 2020 01:06:16 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 2A1F4FB27; Sun, 19 Apr 2020 01:06:16 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 19 Apr 2020 01:06:16 +0000 From: "Joerg Sonnenberger" Subject: CVS commit: src To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200419010616.2A1F4FB27@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Joerg Sonnenberger" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: joerg Date: Sun Apr 19 01:06:16 UTC 2020 Modified Files: src/lib/libc/gen: pthread_atfork.c src/libexec/ld.elf_so: rtld.c rtld.h symbols.map Log Message: Rename __atomic_fork to __locked_fork and give it &errno as argument. rtld and libc use different storage, so the initial version would incorrectly report the failure reason for fork(). There is still a small race condition inside ld.elf_so as it doesn't use thread-safe errno internally, but that's a more contained internal issue. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/lib/libc/gen/pthread_atfork.c cvs rdiff -u -r1.204 -r1.205 src/libexec/ld.elf_so/rtld.c cvs rdiff -u -r1.139 -r1.140 src/libexec/ld.elf_so/rtld.h cvs rdiff -u -r1.3 -r1.4 src/libexec/ld.elf_so/symbols.map Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.