named pipe oddity

Gregory M. Turner gmturner007 at ameritech.net
Mon Feb 17 20:51:34 CST 2003


On Monday 17 February 2003 08:26 pm, Dan Kegel wrote:
> A while ago, I noticed that our setup program didn't work
> with cvs wine.  Somebody said "Oh, that's because named pipes
> are broken."  Since then, the setup program works again with
> cvs wine, but I'm still curious about the state of named pipes.
>
> The simple sequence
>    CreateNamedPipe
>    CreateFile
> seems to work under Windows, but not under Wine.
> Does Wine for some reason require a ConnectNamedPipe between the two?
> A very simple test is attached.
>
> (BTW, I've been looking at the wineserver named pipe code a bit.
> Shame it's not better commented... at least it's small, so the lack
> of comments isn't too awful.)
> - Dan

nice catch!

This explains some things I've been noticing lately ;)  There have been race-conditions in
RPC lately, my uncomitted "rpc testcase" patch exposes them.  Maybe you've found code
(or hardware?) to consistently expose the losing side of the race?  Wish I had a dualie for
stuff like this ;)

Will take a peek and see if anything jumps out at me (fat chance, I presume, but wth...)

-- 
gmt

"Of all the tyrannies, a tyranny sincerly exercised for the good of its victims may be
the most opressive. It may be better to live under robber barons than under omnipotent
moral busybodies. The robber baron's cruelty may sometimes sleep, his cupidity may at
some point be satiated; but those who torment us for our own good will torment us
without end, for they do so with the approval of their own conscience." - C. S. Lewis

 



More information about the wine-devel mailing list