名前付きパイプ (FIFO) - CI/CD用語集の定義
名前付きパイプ(FIFO)は、mkfifo で作成される、ファイルシステム上のパスとして存在するパイプです。匿名の | パイプとは異なり、無関係なプロセスが名前で開いて互いにデータをストリーミングできます。
CIでは
名前付きパイプを使うと、一時ファイルなしで、あるstepが別のツールにデータを渡せます。たとえばlogをパーサーにストリーミングする場合などです。読み手と書き手の両方が接続されている必要があり、そうでないとopenがブロックし、片側しか実行されないとjobが停滞することがあります。
関連ガイド
Pipe - CI/CD Glossary DefinitionPipe: A pipe (`|`) connects the standard output of one command to the standard input of the next, letting sma…
Unix Socket - CI/CD Glossary DefinitionUnix Socket: A Unix domain socket is an inter-process communication endpoint addressed by a filesystem path r…
File Descriptor - CI/CD Glossary DefinitionFile Descriptor: A file descriptor is a small non-negative integer the kernel uses to reference an open file,…