TODO#
fill How Descriptor Numbers Are Chosen in File Descriptors: Basics
signals / async
traditional/async delivery (-> on return from syscall)
when called:
-
“If the Linux kernel determines that an unblocked signal is pending for a process, then, at the next transition back to user mode in that process (e.g., upon return from a system call or when the process is rescheduled onto the CPU), it creates a new frame on the user-space stack”
-
events
link from Introduction signalfd
link from Asynchronous Signal Handling
EINTR
handlinglink from Use Case: Self-Pipe Trick (more with signals)
signalfd: link from
eventd, timerfd (add link from File Descriptors: Basics, look out for “jjj”)
replace
sidebar
withtopic
(better for mobile)exercises see Event Loops
toplevel livehacking explanation
exit status
shell demo: grep jjj /etc/passwd
prog main() { return 0; } -> shell -> shell if, while,