From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 846B41F4B9 for ; Wed, 1 Jan 2020 09:57:56 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 4/6] doc/txt2pre: flush output before utime() Date: Wed, 1 Jan 2020 09:57:53 +0000 Message-Id: <20200101095755.31325-5-e@80x24.org> In-Reply-To: <20200101095755.31325-1-e@80x24.org> References: <20200101095755.31325-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Otherwise our utime() change is overridden when the flush happens at exit. --- Documentation/txt2pre | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/txt2pre b/Documentation/txt2pre index 7cab0fa2..cb6a7613 100755 --- a/Documentation/txt2pre +++ b/Documentation/txt2pre @@ -22,6 +22,7 @@ print '', qq(), "$title", "
",  $str , '
'; +STDOUT->flush; # keep mtime on website consistent so clients can cache if (-f STDIN && -f STDOUT) {