Skip to contentSkip to conversation

Read named pipe (fifo) problem

DISCUSSION Ulf Larsson 1 participant 1 message Dec 5, 2002

lore
Share & tools
lore
#0 lore raw

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