Re: How to know write end of FIFO has closed
From: Ian Stirling (root_at_mauve.demon.co.uk)
Date: 01/20/05
- Previous message: sandeep_onsite_at_yahoo.com: "How to know write end of FIFO has closed"
- In reply to: sandeep_onsite_at_yahoo.com: "How to know write end of FIFO has closed"
- Next in thread: Barry Margolin: "Re: How to know write end of FIFO has closed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 20 Jan 2005 16:16:49 GMT
sandeep_onsite@yahoo.com wrote:
> 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.
man errno
- Previous message: sandeep_onsite_at_yahoo.com: "How to know write end of FIFO has closed"
- In reply to: sandeep_onsite_at_yahoo.com: "How to know write end of FIFO has closed"
- Next in thread: Barry Margolin: "Re: How to know write end of FIFO has closed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|