
Handles, Kernel Objects and the Win32 API Explained
What a Windows HANDLE is, how the per-process handle table refers to kernel objects, how handles are closed, duplicated and inherited, and how to spot leaks.
Everything you need to level up your coding skills.

What a Windows HANDLE is, how the per-process handle table refers to kernel objects, how handles are closed, duplicated and inherited, and how to spot leaks.

Choose between a FUSE daemon and an in-kernel filesystem by weighing crash safety, speed, tooling and boot needs, with a decision table and a libfuse sketch.

Stop zombie children in C on Linux with a SIGCHLD handler that loops on waitpid, or with SA_NOCLDWAIT, and learn what each choice costs you.

The Linux VFS gives every filesystem four shared objects, superblock, inode, dentry and file, plus operation tables that make ext4, tmpfs and FUSE look alike.

See what zombie and orphan processes are, how each one appears in ps on Linux, why a zombie cannot be killed, and how to fix the parent that causes it.

An inode stores a file's metadata but not its name. See inode numbers with ls -i, read every field with stat, and learn why df -i can fill up first.

Use waitpid in C on Linux to wait for a child, poll with WNOHANG, and decode the exit status with WIFEXITED, WEXITSTATUS and WTERMSIG.

Run another program from C with execvp on Linux: build argv, search PATH, handle failure, and combine it with fork and waitpid to run a command safely.

Create a child process in C with fork on Linux, tell parent from child by the return value, and avoid the mistakes that run code twice.

A process is a running program plus the kernel's record of it: a PID, a private address space and a table entry. See each part in C on Linux.

A use-after-free reads or writes memory after free released it. See how it happens in C and C++, how ASan reports it and patterns that stop it.

Use the goto cleanup pattern in C to release files, memory and locks on every error path in reverse order, with a worked example and its limits.
We send one email when a new post is published. No spam.