Skip to content
systemcoding.dev

Snippets

Short posts that solve one thing: the code, the output we got, and why it works.

Systems Programming

Create a pipe and read and write both ends

pipe fills a two-element array with a read end and a write end, and one process can write and read both ends because the kernel buffers the data.

1 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.