How to know write end of FIFO has closed
sandeep_onsite_at_yahoo.com
Date: 01/20/05
- Previous message: Birger Blixt: "Re: remote admin question"
- Next in thread: Ian Stirling: "Re: How to know write end of FIFO has closed"
- Reply: Ian Stirling: "Re: How to know write end of FIFO has closed"
- Reply: Barry Margolin: "Re: How to know write end of FIFO has closed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 20 Jan 2005 03:27:42 -0800
Hi,
How to check write end of a FIFO has been closed?
My problem:
My Linux syslog daemon(syslogd) is sending the syslog messages to a
FIFO. my application daemon program keeps reading from FIFO using
blocking read() call.
When syslogd terminates, read() call always returns 0 bytes, indicating
EOF. But how do I confirm 0 bytes read was due to syslogd closing the
write end of the FIFO. Is there any way to check that write end is
closed.
Appreciate any help.
Thanks in advance,
Sandeep
- Previous message: Birger Blixt: "Re: remote admin question"
- Next in thread: Ian Stirling: "Re: How to know write end of FIFO has closed"
- Reply: Ian Stirling: "Re: How to know write end of FIFO has closed"
- Reply: Barry Margolin: "Re: How to know write end of FIFO has closed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|