Summary

This chapter covered the Unix/Linux exec programming model; the key concept of the predecessor and successor processes, and, importantly, how the successor (more-or-less completely) overlays the predecessor. The seven exec family APIs were covered, along with several code examples. Error handling, successor name specification, and so on, were covered as well. The systems programmer will now have sufficient knowledge to write C code that correctly executes a given program from within a process.

Get Hands-On System Programming with Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.