how to close a stalled file descriptor?
- From: Glenn <eponymousalias@xxxxxxxxx>
- Date: Mon, 29 Oct 2007 02:52:56 -0700
I'm having trouble closing a file descriptor on a stalled named pipe.
To unblock myself if the write takes too long because the pipe is full
and there is no reader on the other end of the pipe, I put in place
a signal handler. But if the signal handler is invoked and I regain
control, on any subsequent attempt to close the file descriptor,
it stalls again! How do I force the file descriptor to close so I
don't have an infinite buildup of file descriptors in my process,
if I want to continue operating? Even a simple "die" or "exit"
won't work because it tries to close the file descriptor and hangs!
.
- Follow-Ups:
- Re: how to close a stalled file descriptor?
- From: Ben Morrow
- Re: how to close a stalled file descriptor?
- Prev by Date: timing out slow operations
- Next by Date: Re: IPC::Open3 and the error filehandle
- Previous by thread: timing out slow operations
- Next by thread: Re: how to close a stalled file descriptor?
- Index(es):
Relevant Pages
|
|