954,116 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to check if a named pipe(file) is empty

I need to check if a named pipe is empty. I am cycling through about 10 of them and if its empty I don't want to block until there is something in it I just want to move on to the next one. Is there any way to check if the named pipe is empty before I read? Its just a file and I have a file descriptor so checking the file would probably work as well. I can't seem to find a way to do this on google.

Thanks

chunalt787
Junior Poster in Training
84 posts since Apr 2008
Reputation Points: 39
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You