Your message dated Tue, 14 Sep 2010 21:52:29 -0400
with message-id <[email protected]>
and subject line Re: Bug#596911: Size of a named pipe made by mknod or mkfifo
always zero.
has caused the Debian Bug report #596911,
regarding Size of a named pipe made by mknod or mkfifo always zero.
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
596911: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=596911
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: coreutils
Version: 6.10-6
To: [email protected]
X-Debbugs-CC: [email protected]
From: [email protected]
Subject: Size of a named pipe made by mknod or mkfifo always zero.
Hi, there!
The size of a filled named pipe is always zero. I think this is wrong!
A read operation is going to hang for try to read from an empty pipe.
To go around this trap it is necessary to do a conditional test on
the filesize, [ -s pipe ].Problem: The test doesn't work, because
filesize is always zero.
Try:
mknod pipe&
sleep 3600<>pipe&
echo 'date'>pipe
[ -s pipe ]&& echo "filled up"
ls -l pipe;
stat pipe # if size zero, it is wrong
[ -s pipe ]&& { read val<pipe; echo $val; }
This is a critical error. While parallel processing a script would be
blocked.
In worst case it causes a deadlock situation. Every changing of a file´s
condition
should be reported whithin the i-node. The stat command shows 0 Bytes, 0
Blocks for
a well filled pipe!
I think it is important.
I found it in several actual distros, also Debian. I did a look up for
this error
on the internet and I found a message to that topic from 2008. So I
think it´s a
long term error.
Best regards
TOM
--- End Message ---
--- Begin Message ---
It's not a bug, that's simply how it works.
Mike Stone
--- End Message ---