Finding penguins with a snake Linux features for a Python user
summary
Concrete demos show how Python calls fork+exec (the subprocess source uses them), how stdio is just a file descriptor under /proc/self/fd, and how buffering explains delayed output. The talk walks through registering atfork handlers, signal behavior (SIGINT -> KeyboardInterrupt, SIGPIPE -> BrokenPipeError), blocking semantics of named pipes, and bidirectional unix domain sockets via socketpair. Examples run live and are reproducible; the membrane codebase is cited as a real project to read for working implementations.
AI-written summary · about
chapters (7)
- 0:00Linux & Python
- 4:59Processes fork
- 10:26Files
- 14:07locale
- 16:11time
- 18:02Signals
- 22:04Unix domain sockets
related talks
28mKnocking On A Process’s Door: Introspecting Live Python Processes
32mWhat's New in the Linux Kernel... from Python
30mAn Admin's Cornucopia - Python Is More Than Just A Better Bash
38mTerminal Whispering
30mMonkey patching
30mUnderstanding Non-blocking IO
24mConsistency and isolation for Python programmers
40mA Few Python Tips
