01-24-06 01:49 AM
In article <1138023311.016999.265040@g49g2000cwa.googlegroups.com>,
Karl_Schmitt_1969@yahoo.com wrote:
> Dear Folks,
>
> I am new to Unix/Linux pipe programming.
> My application is started from a process
> control agent, and this agent closes
> his stdout which is my stdin. My application
> is supposed to detect that the closing event
> and has to respond with an exit.
> How can I detect assynchronusly that this pipe
> connection has closed on the other end?
If you enable signal-based I/O on the pipe, you'll get a SIGIO signal
when the agent closes the pipe.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
[ Post a follow-up to this message ]
|