X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 019CA3858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=cornell.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cornell.edu ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aR0vQ07shhfKRqG23FJ2E6HfwV/JLGaruC1ppbUv8Rf7iX0iHEONlDondaRGKOUvLE5iAaLGBmnRzekjPavS8x1QMpR2RI4KRiaWIVV/3lKbkidm1DeghLDgsyjwFGR/Up4mtj5B77w9ZXEvNbfBRxJdXxP6lKGHRM+wmY2QeNvEVpCP10xlR+/H+WOwfMQOVC0kdR99Zml195+b+o4VcnbvL2Oi1ILh17TGLo7t7D6bGMLR7tvBoqx+h/3vRaP4SnHz74wWM5zq83Fkz+vzo//kLoTPBt2b1+MDKYjFsl3HbZUAZNJuQlZtrW9f0nEzQ5VNAFoBy8EAj3RtVqFbMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=glfppgIudd2FYlvvRtZfSFTyV3qic21h99PTpzsuiLE=; b=EGZLCooy3aaf5G2jO38wy+Vj5DAKlAeg+HeB8fryddlyJs4DJcJOld08+j0ZzAu7Wz/cOW02DodE7LGB9ThmDAtOoszJkSS1xiYxeaoW0En1oWhbXyi7zVgeGEKya17r+GV/3Vfb8qmcm7gWi+yT3xW0CKFObQ3VPLnusoJ2Z9NYvQOK+SLX16oglkHkVyu22NDjEEjFFlTLqmGkRCD/cQN73AdYVDVMtWNQGJm1gXIitzpBQSQ9UQcRaswjgUL5+V530X+8DRanHxYbMSMCms2D8vfty6jG53eUWRFa5Et8SGDahPfah6B0tbxiNs14l9lARgL15ArmZSiRBqQT1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=glfppgIudd2FYlvvRtZfSFTyV3qic21h99PTpzsuiLE=; b=XKNzFIULdEcDai6niw9wSL2MV7pKVr0RQKZXOX8Wgr3Hl4Eh2VknADSuJB8NyGuYpZ/YGMU3DlVXqU3no9C1wpeRRfHzi/+D2z4aM6PutBYWzQnI7B9ba+yWJ0MsrNg4pYwgtX6/sXjkq4co3bdndC05R/UBgfDgZxOREaj+E00= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cornell.edu; Message-ID: <58359837-fd07-50a0-d5f8-b07bf425b7df@cornell.edu> Date: Tue, 20 Sep 2022 09:18:01 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: FIFO issues Content-Language: en-US To: cygwin AT cygwin DOT com References: <1b28b650-b588-e34f-919e-e75f5a01196f AT lyx DOT org> <9e531437-9e27-969f-517e-ec5607212c76 AT cornell DOT edu> From: Ken Brown In-Reply-To: X-ClientProxiedBy: MN2PR04CA0027.namprd04.prod.outlook.com (2603:10b6:208:d4::40) To SA0PR04MB7322.namprd04.prod.outlook.com (2603:10b6:806:e2::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA0PR04MB7322:EE_|MWHPR04MB1104:EE_ X-MS-Office365-Filtering-Correlation-Id: 84a3aaac-2483-44fd-c40f-08da9b0a8c89 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5nfZh82/kl2pJFDNgwftmbjAVy/zsuBu1XZ4i1gyHZH9RbzV52G3poLLZQ8SbJmsJ9RjT8RS1UMpWb6B7VukuChJtc9pu8F6yoltDmtf6T9ZCrTdVvUVf+DDEEDX/8tuTMWQO7r4NETuXDJLfvvHqFz1Ps37j7ykuUj/pu/ZpUCVKG136g3sBRWUWGFxS7nvC/KdfE6ZrAB8UEmLEfClPJQXUkjbYXclaYAPg6zawIdjQwlty7R9ctpCpRJ5LDJIQLmx0jlzScHbL7P8aNYWI8o7qi/924Yit1wfn2eRdicijA+A2iq7LKlXFUdYhJWT5ZstWq8GtxUAUGXf1HZls04H2jCIcngSQQYjEe7V4ai0n28+VE024D7dmOXp9tz21icGhrTfmlwzcn6gs5eJRJYgr3ZxKhLfVv783KuK9982rdi8FJhFqc2e0Dx/kQuQ/R/L9xhBF+oXz3yGlYrBAPUccgTDt7T/XtmSwQt5uWe84SgAssDVp9d7Qhzxaw3uv+ToDkE9WhdBf8izkFWyHBRXTbjeZ7LeQs6+5MQsIUEd12EcVCsKROGqD7n55xdz9/Py0L7qnOyJFwDYeyERrphyLlkDppKEItrdI+Jd1WeV8MWOsAJkO2sNcBUn9cae7iz5jsr7odGkq4oWgsN1uTwyJWC3Oi9NOYxzONsO3oDupHeQHjFyozBaV+eQqOhg1KWiuNw8ZEtsVl/UfT3mfaWFxAJcCfAJVeaTskbiyKmmqua/ifTfVEzByJ1G6XO08CYen9iF6VtdmAPNSIDNejGeG4/0FL0kHkwcUtpXqJM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA0PR04MB7322.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(366004)(376002)(396003)(346002)(39860400002)(136003)(451199015)(75432002)(86362001)(786003)(316002)(31686004)(66476007)(31696002)(66946007)(478600001)(66556008)(6486002)(8676002)(3480700007)(7116003)(6512007)(6506007)(8936002)(41300700001)(41320700001)(5660300002)(186003)(6916009)(2616005)(36756003)(53546011)(2906002)(38100700002)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eitFc1Z0cjZJMWJhaVlpNERUcmxyN0JndkYyNlA5cGJ3eFNjejFNRHNkTUp3?= =?utf-8?B?REhvaDkxbEFFVENwSmhCV0ZKOXI0TlRaRFF3VWZBbEQrOVI1U1F3Z09hVHB1?= =?utf-8?B?UkxZakJnU2V3OEdBWUNlOTdwcEtoTStCQ1M4UmJzZklCRWIvSkFQTWdrZG5q?= =?utf-8?B?cUZJV2JQN3VOcTdtMlVKeG9POVM2Q2xhbnlJSTVMSVUwWnc3djU4cWlZay9o?= =?utf-8?B?dHdXaVlFak9kWndHSVRYM2tYb3ZmNFN5SmFxb2dPZVFxTWgyNzR6MFlpa2Ni?= =?utf-8?B?YTBJWDd3ZjN3YXR1RTUyZFB1eDJkUkMvckxIeXhSYVBLTkUzd042MWFZbWIz?= =?utf-8?B?ejhqcllvWCtRU3k3THFPV3UvdW01ZWVqQkRDRXNLa1ZaN3ZOYkl6ZG53ZkVX?= =?utf-8?B?UjU4SjJubWVLMHMzTTVSZDcxTnA1eDJqUWY3VFRBczNwZ2FvK1BEVzlNT0dn?= =?utf-8?B?ek5LbkRvcm9jQ3Y4TmllVld3bEV6OVV2dHlCaWxLaXRoT3l2WkFjazR4R2xm?= =?utf-8?B?dndqWVVjMGwzRDMwcWJSZkFFVTFQMFdPOUVNTjBraVJPNlB2VEwrZ2xXUlF6?= =?utf-8?B?QjlyOUZQdDJZb2N2UkhHSVcvS2pkSzRrSEl1VkQwL0lqdmlJYlZPVzF0T3Jj?= =?utf-8?B?cXh0dVhlT01NWHVuelNWbVZPaVNVaytHYkorQ0Z4UUpJdnFuc2l4akRoV0VV?= =?utf-8?B?WGw3Q2lDV0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VRZnVKdDFUOUw1?= =?utf-8?B?SzJRYS9NdThHUHFDOHJ5eDkwb3NsMjlJRUdkYWpVblhlVktYUy9jc3plMm9x?= =?utf-8?B?bElKazl4YUhsSEw5YW92UjRBVzVGSHQ4ZHlPNnVudE5tRHJ6bE1VOXQ0dS9i?= =?utf-8?B?ckdldDFuRW0yNjF2ZlI2WXVpVXhEYnVmN01mM1o5b2JNcGVxejBTZVErOWxM?= =?utf-8?B?T3cyYWdCY21wR1hWclUxTDJFK1hVaGhtdUpMcnlnc1pvUWdQS0dPV0ZpOUkz?= =?utf-8?B?OERWNTREVmhsTWpiamJNV0hpSEoyZ0tMZG8yWWdYS2JOa05VVlZIN2ZSZ01Y?= =?utf-8?B?RXpwbTAvaXlsQ3JubW5Sc09YQnlVR1FIRk5ZZjFGMjRqc0Q2Z2kwd1p5NEhS?= =?utf-8?B?dXlGdm9BdDVaZlQ4OE9YNzZrTko1VW1yOExWTE0zbkJ6bjZkWWxPRVdCQi9m?= =?utf-8?B?bGxIai9YTzBXaElObmQ4dUM2cUlnZk1ic3BEN1BvYVRtUFV0NVVJcGNYU3Iw?= =?utf-8?B?ZCtwOTdBSEp0eCtidytrcy9SbkY2SVdhVHVtTnVsK2FPS2pubXBJMjBOUEsr?= =?utf-8?Q?tkd7LrPapbUFpK7DHdcWoKJIwpAllu+UXLn4RezyIIiS?= X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 84a3aaac-2483-44fd-c40f-08da9b0a8c89 X-MS-Exchange-CrossTenant-AuthSource: SA0PR04MB7322.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2022 13:18:03.8194 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ODUqfAqT7MzY37wBs45PFJLCR3KIYDwQYi9JFy3AXZFoxTtM221Ta9emcxYdnkLTJYNCdaux68QfE1Wt+dCSBg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB1104 X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 9/20/2022 2:54 AM, Enrico Forestieri wrote: > On Mon, Sep 19, 2022 at 07:54:11PM -0400, Ken Brown wrote: >> Then I guess I'm wrong. I'm really puzzled, because it seems that none of these >> platforms agree with POSIX, which says the following in its 'read' documentation: >> >> When attempting to read from an empty pipe or FIFO: >> >> If no process has the pipe open for writing, read() shall return 0 to >> indicate end-of-file. >> >> It seems that there's an exception: If no process has ever had the FIFO open for >> writing since it was opened for reading, then the FIFO is not considered to be >> at end-of-file. >> >> I'll look into fixing this. But I'd be more confident about it if I could find >> some documentation of the existing behavior. > > I compared the behavior of read() and select() on 3 different platforms. > My conclusion is that, actually, read() behaves the same on all of them, > whereas cygwin differs in the way select() works. Then I'm even more confused than I was before. Are you saying that there are situations in which read() reports EOF but select() does not report read ready? Could you post the code you used for testing? Thanks. Ken -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple