Lecture 9

Questions for the professor


First off, a couple lectures back you gave a shoutout to a professor named Richard Stevens, who you said had great material to learn more on networking. I took a look around, which let me to a bunch of textbooks that he wrote. I've read the first 7 chapters of volume 1 of "UNIX Network Programming", this Richard Stevens guy is a great writer. From what I can tell, he seems to have built quite a legacy for himself.


On Linux, the set of file descriptors open in a process can be accessed under the path /proc/PID/fd/ replacing PID with the identifier of the current process.

I went to discussion this week, and asked Shuhan the following questions about the code written by our professor, included in snippets below:

An interrupt can be ignored by a call to signal(2), but this is risky, the modern way is to call sigaction(2), and use the macro SIG_IGN to tell the program to respond to SIG_INT by ignoring it.