TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Vitus Jensen
from: Peter Fitzsimmons
date: 1997-01-14 23:46:28
subject: Unique NamedPipe Server

VJ> During testing I happened to start a second instance of this server and -
 VJ> -- it could create a multi-instance pipe with the same 
 VJ> name, too!  The client continued to connect to the

This is working as documented.  The very first call to DosCreateNPipe()
defines how many other pipes with that name can be created -- even if they
are created by other processes.

If you want to prevent a 2nd copy of your program from running (or using
the same name),  use some other named mechanism that does not allow the
name to be reused (sem, shared mem) before the call to DosCreateNPIpe().


--- Maximus/2 3.00
* Origin: Sol 3 * Toronto * V.32 * (905)858-8488 (1:259/414)
SEEN-BY: 50/99 54/99 270/101 620/243 625/0 160 711/401 409 410 413 430 808
SEEN-BY: 711/809 934 955 712/311 407 505 506 517 623 624 704 713/317 800/1
@PATH: 259/414 99 2424/38 11 10 396/1 270/101 712/624 711/808 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™.