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

Moin Peter,

14.01.97 23:46, you wrote a message to Vitus Jensen:

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

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

Scan, read, ... you're right.  A single sentence, last paragraph.

 PF> If you want to prevent a 2nd copy of your program from running
 PF> (or using the same name),  use some other named mechanism that
...
I will use a named semaphore.


C-x C-s
    Vitus [Team OS/2 Germany #835]

---
* Origin: Milky Way, Earth, Germany, Niedersachen, Isernhagen (2:2474/400.8)
SEEN-BY: 50/99 54/99 270/101 620/243 625/110 160 711/401 413 430 808 934
SEEN-BY: 712/311 407 505 506 517 623 624 704 713/317 800/1
@PATH: 2474/400 0 24/999 888 396/1 270/101 712/624 711/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™.