🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.internals
Article #2555

Re: Names pipes or UNIX domain sockets?

#2555
From: Peter da Silva
Date: Thu, 20 Jun 1991 18:46
10 lines
1026 bytes
In article <1991Jun15.204226.25191@ms.uky.edu> sean@ms.uky.edu (Sean Casey) writes:
> One thing I noticed is that when a program opens a named pipe, and
> there's nothing else that has it open, then it just blocks
> indefinitely, while a UNIX domain socket will get the connection
> refused if there's nothing to listen.

Can't you open with O_NDELAY or equivalent?
-- 
Peter da Silva; Ferranti International Controls Corporation; +1 713 274 5180;
Sugar Land, TX  77487-5012;         `-_-' "Have you hugged your wolf, today?"
Technical Details
Message-ID: <2J1C.5B@xds13.ferranti.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sdd.hp.com!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!ficc!peter
References: <1991Jun15.204226.25191@ms.uky.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sdd.hp.com!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!ficc!peter
From: peter@ficc.ferranti.com (Peter da Silva)
Newsgroups: comp.unix.internals
Subject: Re: Names pipes or UNIX domain sockets?
Message-ID: <2J1C.5B@xds13.ferranti.com>
Date: 20 Jun 91 18:46:53 GMT
References: <1991Jun15.204226.25191@ms.uky.edu>
Reply-To: peter@ficc.ferranti.com (Peter da Silva)
Organization: Xenix Support, FICC
Lines: 10