Advanced Programming in the UNIX Environment: Week 07, Segment 5 - Reentrant & interrupted functions
Channel: cs631apue
Date: 18/10/2020

With this video lecture, we will conclude our coverage of Unix signals, by looking at what happens when we call unsafe functions from within the signal handler as well as what happens when we are interrupted while blocking on certain I/O.

Slides for this lecture: https://stevens.netmeister.org/631/07-reentrant.pdf
Course website: https://stevens.netmeister.org/631/

Outline:
00:00 Introduction
01:05 Calling printf(3) in a signal handler
02:39 Calling getpwnam(3) in a signal handler
04:52 async-signal-safe functions
05:40 Blocking functions
07:12 Restarted syscalls by example
08:27 Recap