Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: named pipes blocking zsh
- X-seq: zsh-users 8934
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: named pipes blocking zsh
- Date: Wed, 01 Jun 2005 15:45:19 +0000
- In-reply-to: <d7kjph$ugg$1@xxxxxxxxxxxxx>
- In-reply-to: <d7kjhd$ti9$1@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <d7kfuc$gem$1@xxxxxxxxxxxxx> <1050601144728.ZM11059@xxxxxxxxxxxxxxxxxxxxxxx> <d7kjph$ugg$1@xxxxxxxxxxxxx> <d7kjhd$ti9$1@xxxxxxxxxxxxx>
On Jun 1, 8:24am, Tim K. (Gmane) wrote:
}
} Now that I think about it, what if the pine process crashed and
} didn't have a chance to send an EOF or remove the pipe (assuming pine
} implemented the EOF)?
A crash that severe is by definition an unrecoverable error; it's not
possible to write code to handle it, and it's certainly not zsh's job
to attempt to handle unrecoverable errors in other arbitrary programs.
On Jun 1, 8:20am, Tim K. (Gmane) wrote:
} Subject: Re: named pipes blocking zsh
}
} What's interesting is that if I 'strace' the zsh process while it's
} stuck (after the pipe was deleted), it will terminate.
That's almost certainly because strace sends a SIGPROF to zsh, which
interrupts whatever system call was blocking on the fifo.
I suspect that if you attempted something other than "kill -9" (such as,
say, "kill -1") you'd find that it *is* possible to politely interrupt
zsh when it's waiting on the fifo.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author