From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ulf Larsson" Subject: Read named pipe (fifo) problem Date: Thu, 05 Dec 2002 14:47:17 +0100 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <1039096037.3ceb1f80ulfl@home.se> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-msdos@vger.kernel.org Hello I want to create a connection between my DOS program and a Linux server using fifo (named pipe). This works fine when writing from DOS to Linux part. But when the DOS program tries to read from the fifo it get hunged in the read function (because no data). How can I get the read to return with 0 return if no data present ? Have been using Linux DOS emulator 1.0.2.1 and FreeDOS kernel 1.1.24c (Dos program compiled with Borland BC3.1). Linux to linux program communication with fifo is working fine. best regards Ulf Larsson