TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Leslie Rhorer
from: Jonathan de Boyne Pollard
date: 1996-04-03 19:39:24
subject: Named Pipes

* Reply to msg originally in FIDO   - IBM OS/2 operating system

 LR> I am having some problems with named pipes.

 This is the correct echo.

 LR> Prior to running his code, I of course get:

 LR> SYS0002: The system cannot find the file specified.
 LR> "\pipe\DMPstat"

 LR> After his code is active, the line produces no error, but the
 LR> command line freezes, with no output.   releases the
 LR> process, but then further attempts produce:

 LR> SYS0231: The pipe is in use by another process.
 LR> "\pipe\DMPstat"

 I assume that "his" end is the named pipe server, and that your
 application is the client-end of the named pipe.

 In which case, you might like to check how many instances of the named
 pipe he is allowing when he creates it.  From what I can gather from the
 design of your programs, only one should be allowed.

 LR> Using my compiler, I get an error whenever I attempt to access
 LR> the pipe.  I can see when his code creates the pipe, because the error
 LR> code changes, but I can't accesss the pipe itself.

 This is probably the best way of testing things, since you cannot be sure
 that all command interpreters clean up properly if the TYPE internal
 command is interrupted by a signal.  If TYPE leaves the client-end handle
 open, that could explain your SYS0231 error.

 What are the errors ?

 Also, please provide an overview (i.e. slimmed-down source) of how both
 the client and server are using the named pipe.

 / JdeBP .

... Another excellent OS/2 day goes by.
--- Blue Wave/OS2 v2.20 [NR]
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 440/4 141/209 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.