Received: by mail.netbsd.org (Postfix, from userid 605) id 192D684F12; Wed, 24 Jun 2020 16:49:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 8DFCD84F0D for ; Wed, 24 Jun 2020 16:49:31 +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 h4-rLpg6dW87 for ; Wed, 24 Jun 2020 16:49:31 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 232E084E5B for ; Wed, 24 Jun 2020 16:49:31 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 0F124FB28; Wed, 24 Jun 2020 16:49:31 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 24 Jun 2020 16:49:31 +0000 From: "Valeriy E. Ushakov" Subject: CVS commit: src/usr.bin/m4 To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200624164931.0F124FB28@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: "Valeriy E. Ushakov" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: uwe Date: Wed Jun 24 16:49:30 UTC 2020 Modified Files: src/usr.bin/m4: main.c Log Message: Try not to lose error output with --error-output. Try to avoid the trap we set up ourselves while avoiding freopen(3). When exit flushes and closes open streams it may close sfp first and when it comes about to flush and close stderr, the descriptor is already gone and we lose any buffered error output. This actually happens on some hosts, breaking --trace output used by autoconf. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/usr.bin/m4/main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.