[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: case of printf >fifo hang in int trap
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: case of printf >fifo hang in int trap |
Date: |
Mon, 14 Feb 2022 00:41:33 +0100 |
On Sun, Feb 13, 2022, 21:40 Greg Wooledge <greg@wooledge.org> wrote:
> On Sun, Feb 13, 2022 at 07:33:48PM +0100, Alex fxmbsw7 Ratchev wrote:
> > so i have, mkfifo fifo ; trap 'printf nowork>fifo' int, it hangs on it
>
> This is expected. Any process that opens a FIFO for read or write is
> supposed to block (hang) until a *second* process opens it for the
> opposite (write or read). Once the pipe has been opened twice, once in
> each direction, then both processes are un-blocked.
>
i mean i know of the hanger, but in interactive it kills every of the 3
combos i know to stop a process
>