From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 1ce1d947 for ; Tue, 30 Jul 2019 18:26:34 +0000 (UTC) Received: (qmail 17263 invoked by alias); 30 Jul 2019 18:26:04 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44599 Received: (qmail 29795 invoked by uid 1010); 30 Jul 2019 18:26:04 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f175.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25524. spamassassin: 3.4.2. Clear:RC:0(209.85.208.175):SA:0(-1.9/5.0):. Processed in 2.212178 secs); 30 Jul 2019 18:26:04 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.175 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=byQPm6hdsT2zmVeAHKHbmmXEJVwtdVfhDm44Lsbxe4g=; b=StBtLwAVfWM+zAOCtZ5h4LeAOMehpkhliBJOtTJiQuEDY9SKq+2kapd1xteWmx96Wa UWgnzStrHwfoHHRSOGs+LhZtJ/EflnWtV18Iq6L5ZwcNbemezZ6Soa6kLyVNuTmSSrFD sG3bxxPUs21BnMLWDlTiRCmflxKmC+mmX0QNF7CLUwFGA5iOBL7TkQJgGTKocUzWaydV 5OlaqPlAyPOX8v6ZPXva2oq0rVN35Qy9NE+Y0g/5lvuakFLO/d9vk1dskhXlBlKsHBku x9LZNVQfNEzdxF37LH64WBtxu1WVAdgBgMTczJ/ZAYUlloQvEu2ZSBWvR6UmxieY8rWa KFug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=byQPm6hdsT2zmVeAHKHbmmXEJVwtdVfhDm44Lsbxe4g=; b=MKJqH4tr6/TOeKSst9KtRAj9p37RIiXUvYciywx1Orb6I8N109nrcDzbCBHJ39vl1F 2/KWib/t6zPo6/1Vz3JHO67jajD3AiupSy5mgDgzc8CtZUgNuGrU3eGTNy8P6XD8d0Eo YzYX0MWxWbm/OZujn+DvAIEHB0piQVNHnWJW5g89ZDQAOdxSxxhFE+u/Mv/S7MER2tc9 OGGLMAMTvWVGYqL3WKwvi/Zk9s9+gmxMzJXZpZRsHoj/jziSjlcEUj8tX6O1moawVv0B TCiaQsRq9tQQQInjgPhaC8iXuwh5twBQT6CluyRgRLBOY5aNS1gdCA5o+vPBeviahXdi QoTw== X-Gm-Message-State: APjAAAVxwIBK0aY5TWIanZTG+vevAdF2OmFDzaGRH9He3q7wKvmtJjw9 mnQPNBMwgPTal7+A7csvsPknKLnaRcRAmRyjVlBQZg== X-Google-Smtp-Source: APXvYqxdVOv0dymWDIiT3M5ORXr5bqWH6zkoA93YD8ztQS5APihzRFRYBSLxtjW6Yxu8Y125zhAnUfuSfUqLFzzq4N0= X-Received: by 2002:a2e:86cc:: with SMTP id n12mr37014453ljj.146.1564511127421; Tue, 30 Jul 2019 11:25:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Tue, 30 Jul 2019 11:25:15 -0700 Message-ID: Subject: Re: zsh testcase hangs in AIX To: Ayappan P2 Cc: "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" On Tue, Jul 30, 2019 at 7:47 AM Ayappan P2 wrote: > > We are porting zsh 5.5.1 in AIX. Why not 5.7.1, the more recent release? > Any help would be great. This is testing the coprocess, which uses pipe() and then dups the resulting descriptors before forking a child process. This means there is a situation where you have two-way communication between the parent and child, so if there is either insufficient buffer space [so write() blocks] or the buffers are not flushed [so read() blocks] then the exchange can deadlock. The test is assuming that pipes have more than 12 bytes of buffering but are flushed at least on a line-by-line basis.