help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: case of printf >fifo hang in int trap


From: Greg Wooledge
Subject: Re: case of printf >fifo hang in int trap
Date: Sun, 13 Feb 2022 15:40:04 -0500

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]