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

Keybase proof

I hereby claim:

  • I am b3h3moth on github.
  • I am behemoth (https://keybase.io/behemoth) on keybase.
  • I have a public key whose fingerprint is 11C3 D822 EA07 6D99 1F59 5F86 2023 8259 E83F 9FBB

To claim this, I am signing this object: