🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Named pipes/VDMs

#22
From: Golan Yaniv
Date: Thu, 15 Dec 1994 10:21
30 lines
1909 bytes
Steven Mathers (mathers@sibelius.trl.OZ.AU) wrote:
: 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

VDMs support a subset of the Named Pipes API. Look in Ralph Brown's 
Interrupts List.

--

Yaniv Golan  | s2942275@techst02.technion.ac.il
Technical Details
Message-ID: <D0uKr7.FxG@discus.technion.ac.il>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!rutgers!sgigate.sgi.com!sgiblab!spool.mu.edu!uwm.edu!news.alpha.net!news.mathworks.com!uhog.mit.edu!news.kei.com!wang!news
References: <3clsco$ked@newsserver.trl.OZ.AU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a752,2fc09fe773cdc1a3
X-Google-Attributes: gid10a752,public
X-Google-Thread: 11307a,2fc09fe773cdc1a3
X-Google-Attributes: gid11307a,public
X-Google-ArrivalTime: 1994-12-15 02:21:06 PST
Newsgroups: comp.os.os2.programmer.misc,aus.computers.os2
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!rutgers!sgigate.sgi.com!sgiblab!spool.mu.edu!uwm.edu!news.alpha.net!news.mathworks.com!uhog.mit.edu!news.kei.com!wang!news
From: s2942275@techst02.technion.ac.il (Golan Yaniv )
Subject: Re: Named pipes/VDMs
Organization: Technion
Date: Thu, 15 Dec 1994 10:21:06 GMT
Message-ID: <D0uKr7.FxG@discus.technion.ac.il>
Followup-To: comp.os.os2.programmer.misc,aus.computers.os2
References: <3clsco$ked@newsserver.trl.OZ.AU>
Sender: news@wang.com
Lines: 31