🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer.misc
Article #21

Named pipes/VDMs

#21
From: Steven Mathers
Date: Wed, 14 Dec 1994 04:30
22 lines
1689 bytes
Hi.  Ive got an os2 program communicating via a named pipe with a 
DOS program written in Borland Pascal (I know, I cant help it) 
running in a VDM.

Heres the problem:

The Pascal function I am using in the DOS program to read data from the pipe 
is BlockRead.  This function returns either the number of bytes read
into a buffer, or 0 if there is no data available.  This works fine
in a normal DOS environment, reading from a normal file, but when
I tried it in the VDM talking to the pipe, instead of returning 0 when
there is no data to be read, it just hangs until there is data to be
read, just like a blocking function.  I cant have this - I need the
program doing other stuff while there is no data to be processed in the
pipe.

So:  Why is this happening, and how can I get around it?

Thanks everybody!

Steve Mathers
s.mathers@trl.oz.au
Technical Details
Message-ID: <3clsco$ked@newsserver.trl.OZ.AU>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!uwm.edu!msunews!harbinger.cc.monash.edu.au!newsserver.trl.OZ.AU!sibelius.trl.OZ.AU!mathers

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a752,2fc09fe773cdc1a3,start
X-Google-Attributes: gid10a752,public
X-Google-Thread: 11307a,2fc09fe773cdc1a3,start
X-Google-Attributes: gid11307a,public
X-Google-ArrivalTime: 1994-12-14 01:34:24 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!uwm.edu!msunews!harbinger.cc.monash.edu.au!newsserver.trl.OZ.AU!sibelius.trl.OZ.AU!mathers
From: mathers@sibelius.trl.OZ.AU (Steven Mathers)
Newsgroups: comp.os.os2.programmer.misc,aus.computers.os2
Subject: Named pipes/VDMs
Date: 14 Dec 1994 04:30:16 GMT
Organization: Telecom Research Laboratories, Melbourne, Australia.
Lines: 25
Distribution: world
Message-ID: <3clsco$ked@newsserver.trl.OZ.AU>
Reply-To: s.mathers@trl.oz.au
NNTP-Posting-Host: sibelius.trl.oz.au