Skip to content

Instantly share code, notes, and snippets.

View b3h3moth's full-sized avatar
🏠
Working from home

luca suriano b3h3moth

🏠
Working from home
View GitHub Profile
@b3h3moth
b3h3moth / persistent_pipes_linux.md
Last active September 10, 2015 13:19 — forked from CAFxX/persistent_pipes_linux.md
Persistent pipes/circular buffers for Linux

Persistent "pipes" in Linux

In a project I'm working on I ran into the requirement of having some sort of persistent FIFO buffer or pipe in Linux, i.e. something file-like that could accept writes from a process and persist it to disk until a second process reads (and acknowledges) it. The persistence should be both across process restarts as well as OS restarts.

AFAICT unfortunately in the Linux world such a primitive does not exist (named pipes/FIFOs do not persist