SYS
Process Signals
kill -SIGUSR1 $(pidof daemon)
# graceful reload config
Understanding Unix signal handling for daemon management and graceful shutdowns.
kill -SIGUSR1 $(pidof daemon)
# graceful reload config
Understanding Unix signal handling for daemon management and graceful shutdowns.
bind(fd, (struct sockaddr*)&addr,
sizeof(addr));
Low-level TCP socket creation and the nuances of port reuse in production.
char buf[4096]; // stack frame
// no malloc, no free, no leak
When and why to prefer stack allocation over heap in performance-critical paths.
stat(path, &sb);
printf("ino: %lu", sb.st_ino);
Filesystem metadata structures and how hard links share inode references.
h = sha256(h || nonce);
// chain integrity verification
Building tamper-evident logs using iterative cryptographic hash chains.
mov rax, 1 ; sys_write
mov rdi, 1 ; stdout
syscall
x86_64 Linux syscall convention — registers, numbers, and the kernel boundary.