%@fileopen[ "\\.\pipe\xxx", w ]% hangs

Mar 18, 2010
46
0
#1
(ver /r output: TCC LE 13.04.63 x64 Windows 7 [Version 6.1.7601])

This batch file never terminates:
set np=%@fileopen["\\.\pipe\xxx",write]%
if %np%!=-1 set np=%@fileclose[%np%]%

FWIW, I think I recall seeing named pipes working in some earlier version of TCC or TCC/LE.
 
Mar 18, 2010
46
0
#2
This batch file never terminates:
set np=%@fileopen["\\.\pipe\xxx",write]%
if %np%!=-1 set np=%@fileclose[%np%]%

Well, that's not quite true. If another process tries to open the same named pipe, the above open unblocks and returns a filehandle. Oddly, after that, the open runs without blocking whether or not any process holds a read handle for that pipe. It's as if only the original creation blocks, but somehow the pipe object hangs around even when nothing ostensibly references it.